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


Please Help Members By Posting Answers For Below Questions

What is the function of the dd mgmtclas keyword in sms datasets?

738


when can a job time-out occur? How to overcome that?

753


What is the format of comment statement?

666


What is the significance of addrspc parameter in exec statement?

729


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?

1614






How to submit a jcl from cics?

666


what is “Cond= even” and “Cond=only”?

740


Is automatic restart possible in jcl? If yes, how?

655


Where & How Do You Code Identifier In Jcl?

698


Can we call instream to catalog and catalog to instream?

683


How can values be passed from the job stream to an executable program?

874


How can a fb file convert to vb file using sort program?

805


How to execute 2nd and 4th steps among 5 steps in jcl proc?

747


What are the parameter we cannot use in procedure?

640


Name a few IBM utility programs, and explain its function.

4440