How to Restart PROC Step in JCL Best Example

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

Author: Srini

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

Comments are closed.