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

What is the function of //jcllib statement?

919


what is DSN in JCL and what are the parameters to declare the DSN?

821


Where & How Do You Code Identifier In Jcl?

800


which utility is used to run a cobol-db2 program?

914


List the different components of jcl statement?

783






What is multithreading in jcl?

1037


Explain about ISPF/TSO Commands

1438


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

2072


Explain the function of the steplib dd statement?

722


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

2086


Explain how can return codes be tested before execution of a job step?

941


how to do automated restart when a job abends?

958


Is it possible to define dd statements as you want?

751


Explain dfsort utility?

856


What happens if both JOBLIB & STEPLIB is specified ?

701