In my job I have 6 steps. Step01,02,03...step06.
after executing step02 i want to skip step03 and want to
execute step04. and once step04 is done then I want to go
back and execute step03. once step03 is completed I want
execute step05, 06 and so on... can any one tell me how do
i do that???

Answer Posted / pradeep

See below the exact code for your requirement: Here TEST001
contains your actual JCL to be executed

//Job Card
//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=(STEP01,STEP02,STEP04)
/*
//STEP002 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=(STEP03,STEP05,STEP06)
/*

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the function of job statement in jcl?

654


what happens in execution stage in job processing?

657


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

623


Is their any set of rules for dd? Explain.

664


what is use of disp parameter in dd statement?

667






how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

791


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

1933


How does the jcl specify the job to os?

698


when can a job time-out occur? How to overcome that?

753


Explain the function of the dd dcb keyword?

706


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

673


What is the purpose of dd?

728


Explain in DD statement what is the use of DCB parameter?

657


What is the function of the dd mgmtclas keyword in sms datasets?

743


What is multithreading in jcl?

944