As per theory , if first step run sucessfully return code is 0 ,so 0 eq 0 true , so step 2 should not run if it consider steplib cond code , if it consider job cond code , step 2 should run because 0 not equal to 0 , false . For me second step is not running .
can any one explain this clearly to me with an example code .
If you code the COND parameter on the JOB statement and on one or more of the job's EXEC statements,
and if a return code test on the JOB statement is satisfied, the job terminates. In this case, the system
ignores any EXEC statement COND parameters.
If the tests on the JOB statement are not satisfied, the system then performs the return code tests on the
EXEC statement. If an EXEC return code test is satisfied, the step is bypassed.
The JOB COND nullify the EXEC COND only if the JOB COND comes true.
You're right, in your example, STEP02 is never executed.