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
Explain how can the attributes of one sms dataset be copied to another dataset?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
How to pass data to a program that is coded in an exec statement?
Explain how can return codes be tested before execution of a job step?
What is catelog procedure and how many catelog procedure to use in one job?
what JCL Procedures?
How to submit a jcl from cics?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
how to compare two datasets without using superce because output is limited to 133 bytes
What is the purpose of the dd keylen parameter?
What are the rules employed while naming the steps in a job?
what is DSN in JCL and what are the parameters to declare the DSN?
Explain about ISPF/TSO Commands
Can an individual step be restricted from using all the jobs allowed cpu time?