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

State the uses of syspring, sysin, sort fields, sum fields and dummy.

650


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

717


How does jcl act on code(if you take a cobol program)?

707


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

658


How do you overcome this limitation ?

698






In sms datasets, what is the function of the dd mgmtclas keyword?

861


how you will the direct the data to spool using sysout option?

1764


What are the difference between jcl and jes?

1050


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

1931


What is the function of dd disp parameter?

655


Explain the jcl exec statement?

647


List the different jcl statements that are not permitted in the procedures?

640


Explain how can an in-stream dataset be terminated?

699


What is the motivation behind coding class parameter in job statement?

686


What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?

1807