We have 100 steps in a procedure and we need to run the jcl
and execute only 25th step in the proc and not the
remaining steps. How can we do it?

Answers were Sorted based on User's Feedback



We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc..

Answer / manjunath s h

use restart parameter, restart = procstep.stepname
procstep: the step of the jcl which is invoking the proc.
stepname: the step in proc where u want the execution to
start.

use null statement after the 25th step in the proc.
or
override the cond parameter of 26th step as cond=(0,LE).

Is This Answer Correct ?    12 Yes 1 No

We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc..

Answer / prakash

Use IEBEDIT utility and select the required step alone for
execution

Is This Answer Correct ?    4 Yes 1 No

We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc..

Answer / vikas bhardwaj

//QV1P01TV JOB ABCB......
//STP EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT = *
//SYSUT1 DD DSN=.......
//SYSUT2 DD DSN=.......
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP25)
/*

Is This Answer Correct ?    5 Yes 2 No

We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc..

Answer / indrani

We can copy the PROC into personal library and edit the
proc and put a null card post 25th step. Then make the JCL
use your personal library as the proc and only 25th step
will run and the rest of all steps will be bypassed.

I would recommend this to be the best answer.

Is This Answer Correct ?    3 Yes 1 No

We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc..

Answer / varmak

@ Indrani

In case if we are anyways editing the proc, we can copy
only step25 into local jcl pds & execute... why copy
entire proc..?

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More JCL Interview Questions

Which statement is used to identify the private libraries in job?

0 Answers  


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

0 Answers   IBM,


What do you do if you do not want to keep all the space allocated to a dataset?

2 Answers  


I have 3 duplicate records in a file . I want to eliminate 1st, 2nd and copy 3rd one only . HOW ?

3 Answers   CTS, DELL,


I have 5 generations in my GDG. How do I code in the JCL to consider all the 5 versions of the GDG ?

5 Answers   Xansa,






If a jcl has just 1 step and the input file to this does not exist, then what will happen if we submit this job?

3 Answers  


Statement1 "We can not use UNCATLG in SMS managed VSAM datasets" Statement2 "We can not delete a SMS managed data set without UNCATLG it" (P-353, Saba Zameer book) Then how do we delete SMS managed VSAM datasets ?

1 Answers   IBM,


What are the jcl procedures?

0 Answers  


What is the purpose of include statement in a JCL?

2 Answers  


What are the utility programs in jcl?

0 Answers  


how to create a member or sequential dataset through tso command??

4 Answers  


What is the function of //cntl statement?

0 Answers  


Categories