How to skip first step of a job? Can we use COND on the
first step?
Answer Posted / abhijit18in2002
Check this JCL you can use COND=ONLY
//X5PAKR5J JOB (X5P,AKR,5,00000),'TEST CONDITION',
// MSGLEVEL=(1,1),CLASS=Z,MSGCLASS=Z,
// NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEFBR14,COND=ONLY
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//STEP2 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//STEP3 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//SYSIN DD DUMMY
/*
O/P
STEP1-STEP WAS NOT RUN BECAUSE OF COND = ONLY
STEP2-STEP WAS EXECUTED - COND CODE 0000
STEP3-STEP WAS EXECUTED - COND CODE 0000
Is This Answer Correct ? | 34 Yes | 6 No |
Post New Answer View All Answers
What is the function of the dd mgmtclas keyword in sms datasets?
when can a job time-out occur? How to overcome that?
What is the format of comment statement?
What is the significance of addrspc parameter in exec statement?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
How to submit a jcl from cics?
what is “Cond= even” and “Cond=only”?
Is automatic restart possible in jcl? If yes, how?
Where & How Do You Code Identifier In Jcl?
Can we call instream to catalog and catalog to instream?
How can values be passed from the job stream to an executable program?
How can a fb file convert to vb file using sort program?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
What are the parameter we cannot use in procedure?
Name a few IBM utility programs, and explain its function.