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

how can the same proc be re-used and called by many jobs?

926


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

639


Explain the function of the steplib dd statement?

658


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

983


What do you understand by the terms: joblib and steplib?

632






what are the statements that are not valid to be included in an include statement?

784


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

676


What is the purpose of dd?

735


Are there any set of rules for the names of the steps used in a job?

647


List in order the hierarchical levels of jcl?

678


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

747


How can values be passed from the job stream to an executable program?

883


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.

1967


Explain the function of job statement in jcl?

659


What is the function of the dd dcb keyword?

837