Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
THEN and ELSE clauses z/OS MVS JCL Reference SA23-1385-00 |
|
A THEN clause consists of the JCL statements between the IF/THEN statement and, if specified, its matching ELSE statement; otherwise, its matching ENDIF statement. If you do not specify any statements, it is a null THEN clause. An ELSE clause consists of the JCL statements between the ELSE statement and its matching ENDIF statement. If you do not specify any statements, it is a null ELSE clause. In an IF/THEN/ELSE/ENDIF statement construct, the THEN clause or the ELSE clause must contain at least one EXEC statement to identify a job step. The system executes the following statements conditionally, in
either the THEN clause or the ELSE clause of an IF/THEN/ELSE/ENDIF
statement construct. Execution of the statement depends on the evaluation
of the relational-expression at execution time:
Do not place the following statements in a THEN or ELSE clause:
The system processes the following statements regardless of the
logic of the IF/THEN/ELSE/ENDIF statement construct. They can be
placed in a THEN or ELSE clause, but they are not executed conditionally.
|
Copyright IBM Corporation 1990, 2014
|