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.
//Jobname job (acct info), msglevel=(1,1),Notify=ABCDEF //* //JOBLIB DD DSN=MY.LIBRARY,DISP=SHR //PROCLIB JCLLIB ORDER=(Proc lib name) //* //Step1 Exec TESTPROC, // COND.PS210(0,le) //STEPLIB DD DSN=MY.LIBRARY,DISP=SHR //