Each Control-M/Analyzer rule, regardless of definition method, is composed of header information and a series of EXECUTE blocks. Each EXECUTE block specifies the data source to balance, data strings to search for, and processing actions. An overview of the EXECUTE block structure is discussed earlier in this chapter.
When defining a rule using a standard editor, the following information must be specified:
Basic information about the rule, including the owner, group, and description of the rule.
A series of EXECUTE blocks, each specifying the data source that needs to be balanced, balancing criteria, and resulting actions. Each EXECUTE block:
EXECUTE blocks containing an ON DATA command are used to perform balancing actions on Control-M/Analyzer variables. An IF-THEN-ELSE structure is used.
A sample rule definition structure is provided below:
Figure 293 Sample Rule Definition Structure
HEADER information
EXECUTE block name UPON execution criteria
ON_data source
WHEN criteria
DO processing statements
WHEN criteria
.
.
EXECUTE block name UPON execution criteria
ON_DATA
IF expression
DO processing statements
ELSE
DO processing statements
ALWAYS
DO processing statements
.
.
EXECUTE block name UPON execution criteria
ON_data source
WHEN criteria
DO processing statements
WHEN criteria
DO processing statements
Parent Topic |