Here’s the solution of how to restart the proc step. The purpose of proc is you can reuse it. If you want to make any changes in the proc, you can make those by overriding the parameters in the JCL.
Here’s an example of how you can restart it using COND and Restart. See how.
JCL to restart proc step
//JOB1 JOB...RESTART=JOBSTEP.PROCSTP2 //JOBSTEP EXEC PROC=TEST,COND.PROCSTP4=(8,GT)
When we give COND on Step, it validates with all previous steps return codes.
The above piece of code will do – Restarts Procstp2, and, COND parameter is overridden for Procstp4.
Here are more articles on the JCL COND parameter.
Comments are closed.