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?

Answers were Sorted based on User's Feedback



There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and ..

Answer / sakkara

give COND=ONLY in the JCL for that step.

Is This Answer Correct ?    25 Yes 4 No

There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and ..

Answer / marekj

Answer #1 is correct.

Is This Answer Correct ?    7 Yes 2 No

There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and ..

Answer / 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

There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and ..

Answer / chiru

COND=ONLY will by pass the first step.I checked and this
is working.

Is This Answer Correct ?    4 Yes 1 No

There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and ..

Answer / nagesh

There is no way you can skip the first step of a job from
executing. However further steps can be bypassed by coding
cond=(o,le,).

Is This Answer Correct ?    8 Yes 6 No

There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and ..

Answer / sivakumar sekharannair

That was correct. cond=(0,le) won't work for first step of
jcl.
Sysout details when cond=(0,le) was coded
-JOBNAME STEPNAME PROCSTEP RC
-ESNKMAA PS0010 00
-ESNKMAA PS0020 00
-ESNKMAA PS0030 00

Sysout details when cond=ONLY was coded
-ESNKMAA PS0010 FLUSH
-ESNKMAA PS0020 00
-ESNKMAA PS0030 00

Is This Answer Correct ?    2 Yes 0 No

There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and ..

Answer / amit

Restart the Job from 2nd step: First step will be Skipped
automatically :)

Is This Answer Correct ?    0 Yes 0 No

There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and ..

Answer / ibm

just comment it out the step....

Is This Answer Correct ?    0 Yes 1 No

There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and ..

Answer / ch.mohan

we can't use first step in cond parameter

Is This Answer Correct ?    0 Yes 1 No

There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and ..

Answer / prasad

cond=(o,le)

Is This Answer Correct ?    7 Yes 10 No

Post New Answer

More JCL Interview Questions

i have 5 steps to execute in that i want to skip 3nd step and start execute from forth step how can u do this.

7 Answers   Syntel,


If i am going to change some variable in a copybook( size or variable type) ,what are the changes that need to be done in the corresponding JCL.

4 Answers   IBM,


how to write a jcl prog to copy alternate recs from ps1 to another ps2,suppose ps1 having 10 recs?

2 Answers   Steria, TCS,


What is the difference between BLKSIZE and LRECL?

3 Answers  


how do u send return code from cobol to jcl ?

2 Answers   TCS,


in my jcl have 20 steps step1,step2,.... step20.and i have to execute step1,step2,..and skip the step3 and remaing step4,step5 are execute? i want skip step3 only? what code u can write?

3 Answers   Patni,


Explain about LMQUERY�give a dialog information about a data set

0 Answers  


What is RESTART? How is it invoked?

8 Answers   HSBC,


What is the function of //cntl statement?

0 Answers  


What is DYNAMBR in jcl?

2 Answers   CTS,


In sms datasets, what is the function of the dd mgmtclas keyword?

0 Answers  


Can we able insert data into a PS file Using IEBUPDTE utility??? If Yes can anyone describe it please..

1 Answers  


Categories