JCL: How to run only one step in a Job

I shared two different methods to execute(run) only one step in a Job. For example, you have a JCL with 10 steps and you want to execute only one step. Then, to do this just follow the below two ideas.


Sample JCL you need to execute SPUFI from batch JCL (job).
Photo by Skitterphoto on Pexels.com

How to Execute SPUFI from JCL

Sample JCL you need to execute SPUFI from batch JCL (job).

Here, I want to execute only step 5. How can I do it?

  1. One way is to use RESTART from STEP05. But the problem is it tries to execute subsequent steps. Insert the null statement after STEP05 to prevent the execution of subsequent steps.
  2. But one decent way is you don’t need to touch the code in job steps, just alter only Job card. In the JOB CARD use the COND parameter. When the Job is executed, only the Step mentioned in the RESTART parameter will get executed. e.g., RESTART=STEP05, COND= (0, LE)

Recent Posts

16 Machine Learning Data Terminology

The machine learning projects comprise a series of steps. In this post, I have shared the Dataset terminology for your quick reference.

Author: Srini

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