JCL-Job,Step Cond parameter

Srinimf- Analytics Leader
Srinimf- Analytics Leader

JCL-Cond parameter can be coded in both Step/Job. If both coded, specification on job nullifies the step condition.

Many of the times we may have been asked controlling the steps execution by “cond” parameter.

Advanced jcl, covered greatly, in this book,you may buy on-line here(credit/debit card, get delivery directly to your home).

Much useful for job seeker/professionals.

Cond at job:

//job1  job (xyz),’srini-blogs’,

//                            cond=(4,GT)

If any of the step returns rc=4, 4 is >4, false condition, and that step will execute. If any step returns > 4, the rest of the steps will not execute.

Cond at step(no job cond):

//step1 exec pgm=zzzz,

//                  cond=(4,GT)

if previous step returns 4, 4 is >4, so this step will be executed, since false case. if it is > 4, this step will not be executed and, flow will go to next step.


Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.