My JCL contains four steps

//STP1 A(+1), DISP = NEW
//STP2 A(+2), DISP = NEW
//STP3 A(+3), DISP = NEW
//STP4 A(+1), DISP = OLD

STP3 was abended and I want restart my JCL from STP3 onwards
& what are the precaution I want to take & what are the
changes I need to make. Pls let me know.

Answers were Sorted based on User's Feedback



My JCL contains four steps //STP1 A(+1), DISP = NEW //STP2 A(+2), DISP = NEW //STP3 A(+3), DISP..

Answer / thavasi

Since STP1 and STP2 are completed... u need to override the
GDG versions for STP3 and STP4 as you want to restart from STP3.


//STP3.OUTDD A(+1),DISP=NEW
//STP4.INDD A(-1),DISP=OLD

Is This Answer Correct ?    13 Yes 4 No

My JCL contains four steps //STP1 A(+1), DISP = NEW //STP2 A(+2), DISP = NEW //STP3 A(+3), DISP..

Answer / divakar

you writing restart=step03in joblevelor activity level

Is This Answer Correct ?    3 Yes 0 No

My JCL contains four steps //STP1 A(+1), DISP = NEW //STP2 A(+2), DISP = NEW //STP3 A(+3), DISP..

Answer / naveenkumar m

For example:

if the code executes without any issues the following will be created
step 1 creates G001V00 (A(+1)), DISP=NEW
step 2 creates G002V00 (A(+2)), DISP=NEW
Step3 Creates G003V00 (A(+3)), DISP=NEW
Step4 utilizes G001V00 as DISP is OLD and we refer A(+1) here.

so whatever the content created in step 1in G001V00 will be replaced by the content created in step4.

When the job fails, G001V00 and G002V00 are already created.

so when you restart the step3 you should replace the file (+3) by (+1) in step3 as now the current version is G002V00 not G001V00.

if you don't change the version (+1) that means that you are referring to G003V00 which is created in step3.

Actual code is replacing the file in step1 not step3.

So you need to replace the file version in step 4 from (+1) to (-1). so that it will refer the file created in step1.

Hope this is very clear.. if you don't get even now, feel free to email @ mndlsoft@gmail.com

Is This Answer Correct ?    2 Yes 0 No

My JCL contains four steps //STP1 A(+1), DISP = NEW //STP2 A(+2), DISP = NEW //STP3 A(+3), DISP..

Answer / lalit

you just need to do

//STP3 A(+1), DISP = NEW

as this is the latest generation which is going to create
once you restart the job from this step...

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More JCL Interview Questions

How do you pass parameters to the program as the job is being executed ?

2 Answers  


How to concatenate different LRECL of files?

2 Answers   IBM,


How much is memory space involved, when we code BLOCKSIZE,TRK & CYL ?

1 Answers  


i have a jcl calling proc which has 10 steps, i want to execute from step5 to step10, where can i code RESTART and COND parameter?

6 Answers   IBM,


what do you mean By spooling? Expand SPOOL?

4 Answers  






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  


What happens if both JOBLIB & STEPLIB is specified ?

0 Answers  


how to purge 50 initiators continuously?? console commands??

4 Answers   IBM, ups,


In JCL..for TIME Parameter was specified both JOB & STEP..which one is overrides

6 Answers   Satyam,


i) Difference between ps, esds, ii) Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb

2 Answers  


how to increase the space of a dataset in instream procedure.

1 Answers   HCL,


What is a S0C4 error ?

2 Answers  


Categories