The following are the different methods to execute or run only one step in a Job. Consider a situation where you have a JCL with 10 steps. 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 too. Insert 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 Jobcard. In the JOBCARD use 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)