My JOB contains three steps.

//STEP1 EXEC PGM=ABC
//STEP2 EXEC PGM=DEF
//STEP3 EXEC PGM=GHI

My Question is
1) I want to execute second step only. How will do.
2) Soppose U consider above three steps are in PROC steps
and I want execute the PROC second step only?
How to execute the second step only. During exection
time its creating any ABEND?

Please let me know..........

Answers were Sorted based on User's Feedback



My JOB contains three steps. //STEP1 EXEC PGM=ABC //STEP2 EXEC PGM=DEF //STEP3 EXEC PGM=GHI ..

Answer / sandy

Question no.1
-------------
Code RESTART=STEP02,COND=(0,LE) in the job card
Question no.2
-------------
Code RESTART=PSTEP1.STEP02,COND=(0,LE) in the job
card.PSTEP1 is the step executing PROC.

Is This Answer Correct ?    14 Yes 1 No

My JOB contains three steps. //STEP1 EXEC PGM=ABC //STEP2 EXEC PGM=DEF //STEP3 EXEC PGM=GHI ..

Answer / hema

Restart the Job from second step. Suppress the Third step
using the condition code.

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More JCL Interview Questions

what is use of disp parameter in dd statement?

0 Answers   IBM,


How to do automated restart when a job abend?

0 Answers  


Explain about File Tailoring

1 Answers  


What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

0 Answers  


What is the error code SOC01 indicate ?

5 Answers   Microsoft,






If i am going to change some variable in a copybook( size or variable type) ,what are the changes that need to be done in the corresponding JCL.

4 Answers   IBM,


consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayed after the PERFORM is over? assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above

1 Answers  


how to code instream data in procedure?

3 Answers  


Why block size is multiple of lrecl in jcl?

0 Answers  


Explain the function of //cntl statement?

0 Answers  


which parameter is use to declare the name of dataset in dd statement?

0 Answers   IBM,


What do you do if you do not want to keep all the space allocated to a dataset?

2 Answers  


Categories