Previous Topic

Next Topic

Book Contents

Book Index

General Information

When the IF expression is true, commands between the IF expression and its ELSE statement, or its matching ENDIF statement when no ELSE statement is present, are resolved by Control-M JCL Verify.

When the IF expression is not true, and an ELSE statement exists, only the statements after the ELSE statement are executed. If the ELSE clause does not exist, Control-M JCL Verify stops processing the IF expression and continues executing the rule.

IF expressions can be nested, providing that the above rules are observed. Up to 100 nested IF statements are permitted.

When the rule is saved, logical checks are performed to verify the validity of the rule statements. If an error is detected, an error message is issued upon exiting the rule, and the rule cannot be saved until the syntax is corrected.

Note: To enable the display of IF/ELSE/ENDIF leveling numbering in the Control-M JCL Verify Rule Definition Facility (JR screen), use the JVNIFLVL profile variable. For more information, see Miscellaneous Variables in the INCONTROL for z/OS Administrator Guide.

Parent Topic

DO IF / DO ELSE / DO ENDIF: Action Parameter