wt will happen to the step of a job if u code COND=ONLY




Answers were Sorted based on User's Feedback



wt will happen to the step of a job if u code COND=ONLY..

Answer / gummadi srinivas

//s1 exec pgm=ex1
//s2 exec pgm=ex2
//s3 exec pgm=ex3,cond=only
//s4 exec pgm=ex4

1) if s1 executes sucess, s2 got abend ,then executes s3.and
stops execution

2) if s1 got abend, s2 dont executes ,then s3 executes.and
stops execution

3) if s1 executes sucess ,s2 executes sucess,then s3 wont
executes. and go to s4.....

if any wrong in my answer plz correct me..

Is This Answer Correct ?    13 Yes 0 No

wt will happen to the step of a job if u code COND=ONLY..

Answer / suman

It is to execute subsequent activity when previous activity
terminated abnormally(unsucessfully).

Is This Answer Correct ?    3 Yes 0 No

wt will happen to the step of a job if u code COND=ONLY..

Answer / vinay sonar

//STEP2 DD PGM=IEBGENER,COND=ONLY

it means execute that step only if previous step abends

Is This Answer Correct ?    3 Yes 0 No




wt will happen to the step of a job if u code COND=ONLY..

Answer / rahaman

that step cond=only wil be executed only when the about step fails or shows an abend.

Is This Answer Correct ?    2 Yes 0 No

wt will happen to the step of a job if u code COND=ONLY..

Answer / sdexcellent@yahoo.co.in

if COND=ONLY then the next step will be executed only when
the previous step is not executed

Is This Answer Correct ?    1 Yes 3 No

Post New Answer



More JCL Interview Questions

i have a ps with two columns eno and ename , i need to copy eno column values in one ps and ename column values in one Ps ? is it possible through iebgener . how ? thx in advance

1 Answers   TCS, IBM,


How to Enter The Spool Area In Real Time?

7 Answers   IBM,


i have a string of 80 chars i want to replace 4th char with "a"?

3 Answers   CSC,


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   FIS, Wipro, BirlaSoft,


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

0 Answers  






When we use conditional statement in JCL using if-then-else-endif, IF statement is true, the step is bypassed or executed?

6 Answers  


If a job has 3 steps and step 1 and step 3 should get executed and step 2 should not get executed irrespective of the return code from the previous steps. How can it be done?

5 Answers   TCS,


how to allocate a dynamic dataset in jcl ?

3 Answers   TCS, Patni,


i created one base gdg with lrecl = 100 , now i need to create versions with different lrecl =150,200 can it be possible to create like tht ?

1 Answers   Syntel, Patni,


I have a PDS and want to omit few rows of all members of a PDS. How to do it?

6 Answers   Accenture,


how to create a member or sequential dataset through tso command??

4 Answers  


Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed

0 Answers  






Categories