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
how can the same proc be re-used and called by many jobs?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
Explain the function of the steplib dd statement?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
What do you understand by the terms: joblib and steplib?
what are the statements that are not valid to be included in an include statement?
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?
Are there any set of rules for the names of the steps used in a job?
List in order the hierarchical levels of jcl?
What is the function of the dd mgmtclas keyword in sms datasets?
How can values be passed from the job stream to an executable program?
I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.
Explain the function of job statement in jcl?
What is the function of the dd dcb keyword?