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
Where can program checkpoints be stored for use in a restart?
Explain the function of job statement in jcl?
Explain how can the attributes of one sms dataset be copied to another dataset?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
What is the purpose of the dd keylen parameter?
When space is allocated for an output dataset, what units can be used?
What is the function of the dd mgmtclas keyword in sms datasets?
which utility is used to run a cobol-db2 program?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
What is the difference between run mode and addressing mode?
How to pass data to a program that is coded in an exec statement?
Suppose I have five jobs to do. But I want to hold one?
What are the rules employed while naming the steps in a job?
When output dataset space is required, what quantity categories are used?
What is timing concept in mainframe?