Previous Topic

Next Topic

Book Contents

Book Index

General Information

The ON statement specifies criteria for the triggering of the rule. When a data set or volume that meets these criteria is accessed, the rule is triggered, and actions (DO statements) specified in the rule, are performed.

ON MEDIA and ON VOLSER statements cannot be specified in either of the following cases:

Within an ON block one, and only one, ON DATASET statement must be specified. Because no other ON DATASET statements are specified, Control-M/Tape automatically adds the ON DATASET=* expression to any ON block. All other media options (for example, VOLSER, MEDIA, and JOBNAME) can be specified an unlimited number of times.

Character masking is supported in all ON statements except ON MEDIA. For more information about masking, see Character Masking.

And/Or/Not Subparameter

This subparameter permits specification of multiple ON statements within one ON block (for specifying a combination of media selection criteria).

When specified, another ON line is opened for inputting selection criteria. The newly-opened line must be filled.

The ON block is considered satisfied, and the rule is activated, when a complete set of ON statements is satisfied according to Boolean logic:

Table 172 And/Or/Not subparameter values

Value

Description

A (And)

Indicates AND logic between the two statements. Both ON statements must be satisfied for the same volume or data set.

O (Or)

Indicates OR logic between the two statements. At least one of the ON statements must be satisfied for the same volume or data set.

N (Not)

Indicates NOT logic. The next ON statement must not be satisfied.

Subparameter And/Or/Not uses standard Boolean relations. AND and NOT are applied before OR. NOT means AND NOT as represented below:

A AND B OR C NOT D

is interpreted as

[(A AND B) OR (C AND NOT D)]

Parent Topic

ON Statement: Selection Parameter