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
Where can program checkpoints be stored for use in a restart?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
what is the resolution for sb37 error
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
Is their any set of rules for dd? Explain.
What is the function of the dd avgrec keyword in sms datasets?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
Explain the hierarchy levels in jcl?
How does jcl specify the job to the operating system?
What are the utility programs in jcl?
Explain dfsort utility?
What are s0c1, s0c4, s0c5, s0c7 and socb?