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
GitHub Copilot in VS Code: Setup, Chat, Agent Mode and Debugging
This tutorial explains how to install and use GitHub Copilot in Visual Studio Code. It covers authentication, inline suggestions, comment-based code generation, Copilot Chat, Agent Mode, and custom development workflows. Practical Python examples demonstrate code generation, data processing, testing, debugging, and refactoring, while emphasizing that developers must review, validate, and test AI-generated code.
How to Find Databricks Job Status, Owner, and Active Runs Fast
Need to audit Databricks workflows? Step-by-step guide to tracking job creators, service principal run identities, and current execution status in Databricks.
30 SQL Practice Queries with Solutions — Run Them Live
Practice 30 SQL queries with solutions, from SELECT and JOINs to subqueries and window functions. Run SQL queries live in an interactive SQL Playground.

You must be logged in to post a comment.