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
Is automatic restart possible in jcl? If yes, how?
What is concatenating?
In job processing, what happens in execution stage?
what is DD statement is used in JCL?
Matching Logic in Jcl not in cobol.Could any one please answer this question
How does jcl specify the job to the operating system?
what are the various stages of job processing?
What happens if both JOBLIB & STEPLIB is specified ?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
what JCL Procedures?
what is use of disp parameter in dd statement?
a dd statement has 2 types of parameters. Name them?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Explain how can values be passed from the job stream to an executable program?