I have a JCL which 20 steps. How do I execute 17 th step
alone (It should execute only 17ths tep.and it should not
execute 18,19,20 steps??
Answer Posted / pradeep
There is a better way of doing it as given below:
//STEP001 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXX.GENERAL.STUDY(TEST001),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP0017)
/*
Here, I have used the utility, IEBEDIT to execute only the
required step. You can also, given the syntax,
EDIT TYPE=INCLUDE,STEPNAME=(STEP0017,STEP0021,STEP0099) to
execute the reqd steps only.
Similarly, we can use TYPE=EXCLUDE to exclude the steps
from exec.
| Is This Answer Correct ? | 41 Yes | 4 No |
Post New Answer View All Answers
What is the purpose of disp parameter?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
Explain the function of a dd statement?
Can an individual step be restricted from using all the jobs allowed cpu time?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
Explain how can a jobs execution priority be modified?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
What is the function of the steplib dd statement?
What are the parameter we cannot use in procedure?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
Differentiate between the joblib and the steplib statements?
How to alter the parameters for the existing gdg?
Is condition checking possible in jcl?
List the different jcl statements that are not permitted in the procedures?
How do you access an uncatalogued dataset in a jcl?