Selection parameters and Action parameters are specified as blocks of information (parameters).
The ON block determines which volumes and/or data sets, when accessed, trigger the rule (for example, all data sets created by a certain job or program). The basic structure of an ON block is:
ON    selection           And/Or/Not
ON    selection           And/Or/Not
        .
        .
        .
ON    selection
The DO block specifies which actions are performed. The basic structure of a DO block is:
DO     action
DO     action
DO     action
        .
        .
        .
DO     action
Each Control-M/Tape rule is composed of General parameters, followed by one ON block and one DO block. Scheduling parameters can optionally be specified.
The structure of a simple rule is illustrated below in free format (not using Control-M/Tape’s actual syntax). The rule definition parameters are described in detail in this chapter.
Table 135 Control-M/Tape Rule Structure Example
Section of Rule  | 
Expression  | 
Explanation  | 
|---|---|---|
GENERAL INFORMATION:  | 
RULE=VAULT_BACKUP  | 
Name of rule is VAULT_BACKUP.  | 
OWNER=M99  | 
User ID is M99.  | 
|
DESCRIPTION="This rule stores all backup files for Department 1 in Vault A."  | 
Description of purpose of the rule.  | 
|
ON/DO BLOCK:  | 
ON DATASET=BACKUP.* AND ON JOBNAME=DPT01*  | 
Select backup data sets for Department 1.  | 
DO VAULT=A FOR 60 DAYS  | 
Send these data sets to Vault A for two months.  | 
|
DO SHOUT  | 
Send message to instruct the operator about the vault operation.  | 
|
SCHEDULING INFORMATION:  | 
no criteria  | 
Perform this rule at all times without scheduling restrictions.  | 
Parent Topic |