If a job has 3 steps and step 1 and step 3 should get
executed and step 2 should not get executed irrespective of
the return code from the previous steps. How can it be done?
Answer Posted / ramesh
Use IEBEDIT to skip step 2 and execute step1 and step3 as below
//XXXXXXXX JOB (XXX),'XXXXXXXXXXXXXXXXX',MSGLEVEL=(1,1),
// CLASS=D,PRTY=5,MSGCLASS=T,NOTIFY=&SYSUID
//STEP01 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXXXXXXX.XXXX.XXXX(MEMBER NAME),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD *
EDIT TYPE=EXCLUDE,STEPNAME=(STEP01,STEP05)
/*
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
a dd statement has 2 types of parameters. Name them?
what is the resolution for sb37 error
how can the same proc be re-used and called by many jobs?
what is DD statement is used in JCL?
how you can direct the data to spool using SYSOUT option?
How to submit a jcl from cics?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
What is the purpose of dd?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
What is the format of comment statement?
what is the use of IEBGENER utility?
Where can program checkpoints be stored for use in a restart?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
What is condition checking in jcl? Is this possible?
how you can access an uncataloged dataset in a JCL?