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

Source: IBM

//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.

Related Posts

One response

  1. […] A restart can be automatic (the system restarts the job immediately) or deferred (permitting you to examine your output and make the appropriate changes before resubmitting the job). The restart, whether automatic or deferred, is specified by the RD parameter on the EXEC statement. Read my other post on restarting procstep. […]

    Like