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.

Do you want to know Batch SPUFI?
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?
- 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.
- 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
Linking Words Practice: Improve Your English Speaking Fluency Naturally
earn how to use linking words in English speaking with practical examples. Improve your fluency, communication skills, and confidence using transition words for conversations, presentations, and interviews.
Databricks DLT with @dp: A Complete Guide to Streaming and Batch Processing
Learn how to use Databricks Lakeflow Declarative Pipelines with @dp for streaming tables and materialized views. Includes architecture, examples, and deployment steps.
AI Agents for Beginners: Everything You Need to Know
Learn what AI agents are, how they work, their benefits, use cases, frameworks, and future trends in this complete beginner-friendly guide.







You must be logged in to post a comment.