JCL: How to Skip Steps From 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.

JCL steps
JCL steps – how to skip the step you want from a 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.

Also You May Like: The Key Differences Between Instream and Cataloged Procedures

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)

Related posts

Author: Srini

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