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 / rameshkillampalli
Small correction - stepname=(step2) will allow job to run
step1 and step3 and exclude step2 from execution
//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=(STEP2)
/*
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How is a type of file defined in the jcl that executes the cobol program?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
What is the purpose of dd * statement in jcl?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
In sms datasets, what is the function of the dd mgmtclas keyword?
What is multithreading in jcl?
Explain how can values be passed from the job stream to an executable program?
What is the function of the dd dcb keyword?
Explain the job statement in jcl?
How to submit a jcl from cics?
What is timing concept in mainframe?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What are the jcl procedures?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain