COND ->
step1
.
.
step2,

Step2, Executes if the CC of step1 is 0.
But even if it is NOT 0 and if we dont give COND, will step2
be executed ?

Answers were Sorted based on User's Feedback



COND -> step1 . . step2, Step2, Executes if the CC of step1 is 0. But even if it is NOT ..

Answer / sillyme

Step2 without COND will be executed regardless of Step1 RC

Is This Answer Correct ?    4 Yes 0 No

COND -> step1 . . step2, Step2, Executes if the CC of step1 is 0. But even if it is NOT ..

Answer / ven

step2 will not be executed if step1 cc not= to 0

Is This Answer Correct ?    0 Yes 2 No

COND -> step1 . . step2, Step2, Executes if the CC of step1 is 0. But even if it is NOT ..

Answer / rup

STEP1
. .
. .
STEP2 COND(4,GE,STEP1)

STEP2 EXECUTES IF STEP1 CC=0, IF NOT 0 step2 will not
execute i.e step1 is 4 or >4 then step2 will not execute.

If condition is not giving in step2, then step2 will execute.

Is This Answer Correct ?    0 Yes 2 No

COND -> step1 . . step2, Step2, Executes if the CC of step1 is 0. But even if it is NOT ..

Answer / sandhya

In the job card we have to give cond=(0,gt)
then if even step1 is abended then also step2 will execute

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More JCL Interview Questions

What is the maximum length of a single line of jcl?

0 Answers  


How many positional parameters are there in job statement?

4 Answers  


Hi, My dataset have multiple records, say 100. I want to start copy records only after a record contain a specific value that may be in a specific position. Secondly I want to stop copying rest records if certain record contains a specific value. Can it be done using SORT/ICETOOL utilities?

5 Answers   Patni,


I have a JCL with 10 steps, want to execute first 5 steps only, what are ways of doing it?is it possible to control through JOB card?

10 Answers   iGate,


Is CPU time assigned to a JOB and JOBSTEP BOTH, by default ?

4 Answers   IBM,






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?

11 Answers   IBM,


Why block size is multiple of lrecl in jcl?

0 Answers  


how can handle the s0c4 abend???

3 Answers  


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

0 Answers  


Is CPU time (TIME parameter) assigned to a JOB and JOBSTEP BOTH, by default ?

6 Answers   IBM,


Hi, Say I have 10 flat files and I want to copy all these 10 flat files to a GDG versions flat files (I have GDG base: FDWS01.TEST.RESTORE) in one shot. Can we do that in one shot using a JCL. May be by using IEBGENER. It's a bit urgent. So anyone's fast rely would be appreciated.. Thanks in advance.. 10 flat files ----------------------------------- FDWS01.SUB.RESTORE1 FDWS01.SUB.RESTORE2 FDWS01.SUB.RESTORE3 ; ; FDWS01.SUB.RESTORE10 TO GDG versions ----------------------- FDWS01.TEST.RESTORE.G0001V00 FDWS01.TEST.RESTORE.G0002V00 FDWS01.TEST.RESTORE.G0003V00 ; ; FDWS01.TEST.RESTORE.G0010V00

2 Answers  


How many types of parameters are used in JCL and what are mandatory parameters of JOB statement.

13 Answers   IBM,


Categories