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 is use of dcb parameter in dd statement?
What are steplib and joblib?
What dd statement is used to supply the name of a dataset?
Is automatic restart possible in jcl? If yes, how?
List the various advantages of using jcl language?
What is the function of dd disp parameter?
Explain how can an in-stream dataset be terminated?
How do you submit a job for execution?
is there any way to execute more than one proc in the same exec statement at the same time..?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
What is condition checking in jcl? Is this possible?
What are some jcl statements that are not allowed in procedures?
How to alter the parameters for the existing gdg?
Can an individual step be restricted from using all the jobs allowed cpu time?