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


Please Help Members By Posting Answers For Below Questions

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

669


What is concatenating?

650


In job processing, what happens in execution stage?

714


what is DD statement is used in JCL?

692


Matching Logic in Jcl not in cobol.Could any one please answer this question

3693






How does jcl specify the job to the operating system?

767


what are the various stages of job processing?

751


What happens if both JOBLIB & STEPLIB is specified ?

630


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1365


what JCL Procedures?

713


what is use of disp parameter in dd statement?

673


a dd statement has 2 types of parameters. Name them?

664


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

682


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) ?

1780


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

640