There are 5 steps in a Job. How to bypass the first step
by making use of only COND Parameter and not using any
Restart and IF/THEN/ELSE parameter?
Answer Posted / ajayre
Guys Sorry to say Option Cond=(O,LE) wont work in this case.
Please find the below .
//X5PAKR5J JOB (X5P,AKR,5,00000),'TEST CONDITION',
//MSGLEVEL=(1,1),CLASS=Z,MSGCLASS=Z,PRTY=04,NOTIFY=&SYSUID
//STEP5 EXEC PGM=IEFBR14,
// COND=only
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//STEP6 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//STEP7 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//STEP8 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
Result:-
STEP5 - STEP WAS NOT RUN BECAUSE OF COND = ONLY
STEP5 - STEP WAS NOT EXECUTED.
STEP6 - STEP WAS EXECUTED - COND CODE 0000
STEP7 - STEP WAS EXECUTED - COND CODE 0000
STEP8 - STEP WAS EXECUTED - COND CODE 0000
COND=(0,LE) will not work.Please try it .
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are the jcl procedures?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
Explain the purpose of dd * statement in jcl?
What are the 2 types of parameters in dd statement?
how you can access an uncataloged dataset in a JCL?
what is use of disp parameter in dd statement?
How would you understand error(execution phase)?
What is the difference between run mode and addressing mode?
How can a jobs execution priority be modified?
How can a fb file convert to vb file using sort program?
What is the use of disp parameter?
What does a disposition of (new,catlg,keep) for a dsn mean?
Differentiate between the joblib and the steplib statements?
how can you check if a file is empty using jcl?