COND parameter is used to test the return code of the preceding job steps and determine whether to bypass the job step. It is used for conditional execution of JOB-based on the return code of JOB steps.
It can be coded in the JOB or EXEC statement of JCL.
Syntax:
Following is the basic syntax of a JCL COND Parameter:
COND=(CODE,OPERATOR) or
COND=(CODE,OPERATOR,STEPNAME) or
COND=EVEN or
COND=ONLY
CODE 0 TO 4095
OPERATOR GT,LT,GE,LE,EQ
COND=EVEN Allows the step execution if any of the prior steps abends or not.
COND=ONLY Allows the step execution only if any of the prior step abends.