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




Answers were Sorted based on User's Feedback



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

Answer / suman

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

Is This Answer Correct ?    3 Yes 0 No

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




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

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

what is inrec fields and outrec fields in sorting

3 Answers   Fidelity,


How system will identify whether user wants to create PS or PDS? If answer is SPACE parameter then why we need to pass ps or po as dataset organisation while creation

1 Answers  


Wrete a JCL to compare two files and mached records move to onc file & un mached rows wants to another file?

13 Answers   DSRC, CGI, IBM,


Suppose there r total 10 steps. Out of which i want to execute only the 7th step. How can i do that....????

3 Answers  


How do you create a temporary dataset? Where will you use them?

2 Answers   IBM,






common jcl abends??

2 Answers   ADP, Wipro,


In a single step if input file is present then only need to copy into output file or else need to through a RC is it possible. Note : i want it in a single step

1 Answers  


Suppose we have 5 steps in a job.No step should be executed After submitting every step in a job

2 Answers   IBM, AVB,


I have GDG defined e.g. GDG.smaplegdg.base, after processing the GDG. it contains some records and which is input to the second step2. How can I use GDG to use it as input file at step2.

3 Answers   Wipro,


I am getting the file from Unix to Mainframes for every 15 minutes. The mainframe job get abended with bad records coming from unix. I recovered that by deleting the bad data. I need permenant solution how to fix the issue? The record is getting characters in in first 9 positions which it should not. Please provide me the solution how to skip the records if it finds the charcters in the first 9 positions. K

3 Answers  


File1 has 100 records and file2 has 200 records i want to copy 50 records which r in both file into file3

7 Answers  


How can i execute 5th step without executing first 4 steps?

4 Answers  






Categories