Previous Topic

Next Topic

Book Contents

Book Index

General Information

The DO BLOCK statement provides non-sequential program execution within a rule. When a DO BLOCK statement is encountered during rule processing, Control-M/Analyzer searches for the corresponding EXECUTE block name in the rule definition. When found, the statements following the specified EXECUTE block name are executed. When the specified EXECUTE block finishes processing, processing flow continues sequentially from the point after the DO BLOCK statement.

As explained in the ARG parameter, the rule may pass variables as input to the called block. These variables are called block arguments. Block arguments must be Local or Database variables that have already been initialized. The called block may change the values of these arguments, causing the new values to be accessed by the rule.

The called block refers to these arguments by System variables BARGnn, where nn is a number from 1 to the actual number of passed arguments.

Control-M/Analyzer AutoEdit variables plus Local and Database variables can be embedded in the arguments. The variables are resolved (replaced) at time of rule execution. For additional information on AutoEdit processing, see Control-M/Analyzer Variables, and in particular Passing Variables to Blocks, Rules and User Routines.

Parent Topic

DO BLOCK: Automated Balancing Statement