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

SORT card to eliminate duplicity.

1 Answers   Syntel,


How to pass values in jcl to cobol?

4 Answers   IBM, Infosys,


What is the purpose and meaning of the TIME keyword and what JCL statement is it associated with?

1 Answers  


how to code instream data in procedure?

3 Answers  


There is one QSAM is the VB file. i want to get the first characters in this file and change those characters from'abcd' to '1234' and creat a vasm file to put '1234' in it. how to do in only JCL. if it not QSAM, it's VASM and VB. how to do it.

1 Answers   IBM,






i have two flat files.i want to select one record from that file by using jcl.for example file1 contains emp no,name,joining date. file2 has same details.emp no is primary key. i will give empno.that emp details send to outfile.please let me know if any one knows it.give sample code.

1 Answers   TCS,


How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.

10 Answers   Lehman Brothers,


Can we give TIME = (1440, 59) also ? or is TIME = (1439, 59) is the last one ?

5 Answers   IBM,


How can the attributes of one sms dataset be copied to another dataset?

0 Answers  


what are the ways of passing data to a cobol program from jcl?

1 Answers   IBM,


i have 10steps and i want run step3 and based on step3 i want execute step7,8,9,10?in jcl

1 Answers  


A maximum of 100 chars can be passed to Cobol through Parm in JCL, If we want to pass more than 100 Chars how we can do it ?

3 Answers   IBM,


Categories