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

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?

  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

Supercharge Your Database Skills: Try Our New Interactive SQL Plugin!

Struggling with database queries? Explore our new interactive SQL plugin to write, test, and master SQL directly in your browser. Try the live demo now!

How to Count Spark Stages by Sight and Optimize Shuffles

Want to predict execution stages before running a job? Learn how to count Spark stages by sight with code breakdowns, shuffle rules, and optimization traps.

Databricks Cluster Min & Max: How to Find and Right-Size

Learn how to find and audit Min and Max worker limits in Databricks, track real cluster usage via system tables, and prevent runaway compute costs.

Related Posts

Discover more from Srinimf

Subscribe now to keep reading and get access to the full archive.

Continue reading