This procedure describes how to create a rule file, which is needed to use the ctmextract utility to either monitor SAP jobs with ctmcreate, or to extract job definitions to Control-M using ctmdefine.
Before you begin
Do one of the following:
Windows: Ensure that you have a DOS window running.
UNIX: Ensure that you are logged on to a Control-M/Agent account.
To define a rule file with ctmextract utility:
Open a new text file in a text editor program.
Structure the rule file into the following 2 sections:
The first Section: Indicates which job definitions are monitored or extracted by setting the selection criteria for the job. You can set variables under the [CONDITION1] string. Enter the Rule File variable parameters variables and save the file.
EXAMPLE:
[CONDITION1]
%%SAPR3-JOBNAME SH_CR15
%%SAPR3-ACCOUNT CM2
%%SAPR3-OWNER SH*
The second section: Specifies whether to monitor the job (ctmcreate), or extract its definition to Control-M (ctmdefine). Select either [CTMCREATE] or [CTMDEFINE], as required:
Choose [ctmcreate] to create one or more jobs that monitor identical jobs already running in SAP. For more information see Monitoring SAP jobs with ctmextract.