JCL – How to Skip Steps From Proc

JCL steps
JCL steps – how to skip the step you want from a proc.

Recently my friend has got a problem to skip steps in a proc. There are some 250 steps in the proc. His problem was to skip PS210 step from the proc.

I have given solution as follows. As in the highlighted code, we need to give COND in the JCL. So no need to make any change in the Proc.

When we give COND.PS210(0,le), it validates with PS209 step’s return code. If the RC from PS209 is ‘0’. Then, the comparison is “0 LE 0 “, then the condition becomes true, then, the step will be by passed.

Job Card:

//Jobname  job (acct info), msglevel=(1,1),Notify=ABCDEF
//PROCLIB     JCLLIB ORDER=(Proc lib name)
//Step1   Exec  TESTPROC,
//     COND.PS210(0,le)

Author: Srini

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