A job has 90 steps i want to execute only step7 and step15

Answer Posted / praveen bejjanki

In the jobcard, Give restart=step7, code cond=(0,le) from
step8 - step14, Give a null stmt(//) after step15. That's
it your requirement is met.

Simplest way:
There is an utility IEBEDIT which is used to execute only
few particular steps from 'n' steps in a jcl.

//JOBCARD
//STEPNAME EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=MYPRGM.DSN,DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD *
EDIT TYPE=INCLUDE STEPNAME=(STEP7,STEP15)
/*
//

MYPRGM.DSN = The name of the dataset that has the actual
JCL.

Suggestions are kindly accepted.
Do correct me if i'm wrong.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2163


in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?

816


Explain the purpose of dd dummy statement?

667


Explain the function of dd disp parameter?

593


what is the use of IEBGENER utility?

654






What are the difference between jcl and jes?

1048


How to run cobol program using jcl?

648


Can I share my data with other jobs? How?

663


how to do automated restart when a job abends?

841


What is the maximum length of a single line of jcl?

825


How can unused space allocation be returned to the system when a dataset is closed?

804


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

857


in ways data can be passed to a COBOL program from JCL?

661


Must tape dataset definitions include vol=ser specifications?

971


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?

1613