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 are the 2 types of parameters in dd statement?
which parameter is use to declare the name of dataset in dd statement?
What is the syntax of JCL statement?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
How is a type of file defined in the jcl that executes the cobol program?
What are the jcl procedures?
Explain about ISPF/TSO Commands
Differentiate between addressing mode and run mode.
what is use of dsn parameter in dd statement?
Suppose I have five jobs to do. But I want to hold one?
List in order the hierarchical levels of jcl?
What is NOTCAT ?
What are s0c1, s0c4, s0c5, s0c7 and socb?
Explain how can the disposition of sysout datasets be set for an entire jobstream?