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
What is the function of //jcllib statement?
what is DSN in JCL and what are the parameters to declare the DSN?
Where & How Do You Code Identifier In Jcl?
which utility is used to run a cobol-db2 program?
List the different components of jcl statement?
What is multithreading in jcl?
Explain about ISPF/TSO Commands
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
Explain the function of the steplib dd statement?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
Explain how can return codes be tested before execution of a job step?
how to do automated restart when a job abends?
Is it possible to define dd statements as you want?
Explain dfsort utility?
What happens if both JOBLIB & STEPLIB is specified ?