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

hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

1658


What parameter directs the output of the job log dataset?

759


How to run cobol program using jcl?

645


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?

1611


Matching Logic in Jcl not in cobol.Could any one please answer this question

3668






What is the purpose of dd dummy statement?

937


Explain the jcl exec statement?

642


Explain the function of the dd dcb keyword?

690


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

645


What is the significance of addrspc parameter in exec statement?

724


what happens in conversion stage in job processing?

721


Explain the function of //cntl statement?

644


Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You

2258


Is automatic restart possible in jcl? If yes, how?

650


Where & How Do You Code Identifier In Jcl?

690