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

Hi, Please clear me when COND=ONLY and COND=EVEN. Explain me with example.

2 Answers   GJ,


How to execute step2,step1,step3 when step1,2&3 are in order

6 Answers   TCS,


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

0 Answers  


Hi, can any one tell about " How do u eliminate the duplicates "

2 Answers   Cap Gemini,


What is a Generation Data Group (GDG)?

2 Answers  






what is alternate index?

1 Answers  


WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move

0 Answers  


I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?

3 Answers   Wipro,


What is Automatic Restart ? EXEC PGM = PROG1, RD = R (Is it the Restart of a JOBSTEP or Restarting the execution of the program?) Do we Restart it or it automatically Restarts executing again and again ? Then when it will finish executing ? or After Abending, when we submit it again, then it is Restarted from the Last successful Checkpoint ? If some JOBSTEP is abending, what is the benifit to Restart it, WILL IT NOT ABEND AGAIN if you don't change the LOGIC ?

1 Answers   IBM,


i have 10 steps in my jcl. -->if i want to execute my program from 5th step what i have to do? don't give //* in ur previous steps --> if i want to execute my program from 1to 5 steps only what i have to do?

2 Answers  


What happens if both JOBLIB and STEPLIB is specified ?

8 Answers  


in my jcl have 20 steps step1,step2,.... step20.and i have to execute step1,step2,..and skip the step3 and remaing step4,step5 are execute? i want skip step3 only? what code u can write?

3 Answers   Patni,






Categories