Previous Topic: Operand DefinitionsNext Topic: Operand Definitions


IF ELSE ENDIF Commands

This construct is used in a CA Ideal batch jobstream to bypass execution of any other command based on the value of the return code.

The ELSE clause is optional. If the condition evaluates true, all commands are executed until the ELSE or ENDIF is encountered and all commands after ELSE are bypassed. If the condition is false, no commands are executed until either an ELSE or an ENDIF is encountered.

You cannot nest the IF‑ELSE‑ENDIF command series in other sets of IF‑ELSE‑ENDIF commands.

This command has the following format:

                 	 {GE}
                 	 {GT}
IF {$RETURN‑CODE}	 {LE} nnn
   {$RC         }	 {LT}
                 	 {EQ}
                 	 {NE}
    CA Ideal commands
[ELSE                ]
[   CA Ideal commands]
ENDIF