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-O.

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-O 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. For example, ENDMSG is not allowed in the IF-ENDIF block. If an error is deleted, an error message is issued upon exiting the rule, and the rule cannot be saved until the syntax is corrected.

Note: Rules defined prior to version 6.0.00 are checked for syntax only when Control-O loads the rule. When a rule is rejected, an error message is issued to the monitor SYSPRINT and to the JOBLOG and IOA Log files.

Parent Topic

DO IF / DO ELSE / DO ENDIF: Automated Console Action Parameter