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
Explain the function of job statement in jcl?
what happens in execution stage in job processing?
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?
Is their any set of rules for dd? Explain.
what is use of disp parameter in dd statement?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
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
How does the jcl specify the job to os?
when can a job time-out occur? How to overcome that?
Explain the function of the dd dcb keyword?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
What is the purpose of dd?
Explain in DD statement what is the use of DCB parameter?
What is the function of the dd mgmtclas keyword in sms datasets?
What is multithreading in jcl?