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

What is COND=EVEN ?

9 Answers   IBM,


How gdg are concatenated?

0 Answers  


If I defined space as TRK(10,10) for the one file and lrecl = 4K then tell me how many record will vsam file will contain. will it 1,2,3,4,5 or how many,

3 Answers   IBM,


While using SORT FILES =NONE,XSUM I am getting error "ICE172A E XSUM IS NOT SUPPORTED - USE ICETOOL SELECT IF APPROPRIATE"..I want to write duplicate records a a serparte file..how i can do tht?

3 Answers   Steria,


What is the difference between a PDS member and a GDG Generation ? Is it only this, that with a generation we can use +1, 0, -1 etc while with PDS member we can not ?

7 Answers   IBM,






if we give TIME=0 how many sec that job/step

13 Answers  


What is TimeStamp, What is TimeStamp error and What is the Abend Code for TimeStamp Error ?

4 Answers   IBM,


I have DATE filed like DD-MM-YYYY, So I want output should be MM/DD/YYYY using JCL? Can anybody post the answer for above requirement?

4 Answers   BirlaSoft, FIS, Wipro,


I have a sequential file in which there are 50 records. Now I want to copy all the 50 records in the reverse order into a new file? The last record in the original file should be the first record in the new file. How can I do it?

4 Answers   IBM, TCS,


In a JCL if previous steps return code is greater than 0 or 4 then the next step will not execute. But the job will be successfull with the maximum return code. How can we reset this maximum return code to '0' regardless of return codes of any steps?

4 Answers  


whats the diff bw the evaluate also and and?

0 Answers   CGI,


Is there a way to check for an empty file in JCL other than using IEBCOMPR and the command PRINT COUNT(1)?

8 Answers  


Categories