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


Please Help Members By Posting Answers For Below Questions

What are the 2 types of parameters in dd statement?

642


which parameter is use to declare the name of dataset in dd statement?

728


What is the syntax of JCL statement?

692


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

668


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

694






How is a type of file defined in the jcl that executes the cobol program?

709


What are the jcl procedures?

643


Explain about ISPF/TSO Commands

1308


Differentiate between addressing mode and run mode.

615


what is use of dsn parameter in dd statement?

666


Suppose I have five jobs to do. But I want to hold one?

654


List in order the hierarchical levels of jcl?

664


What is NOTCAT ?

738


What are s0c1, s0c4, s0c5, s0c7 and socb?

697


Explain how can the disposition of sysout datasets be set for an entire jobstream?

634