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

what do you mean By spooling? Expand SPOOL?

4 Answers  


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

0 Answers   IBM,


i have 6 steps in my jcl program after going to 5th step i want to execute 3rd step.....how can i do it....by using(RESTART) can i do it or not?

2 Answers   Wipro,


How different is the JCL executing a COBOL program? 1) if the program is using VB file as input. 2) if the program is using FB file as input.

1 Answers   HSBC,


What will happen if we write two STOP RUN's in a COBOL program?

4 Answers   Satyam,






I have two input files i/p1 name id-key flag date i/p 2 name id-key date if id-key matches in the both the files then it should write the output file from i/p1 with flag 'Y'. It should be done thru JCL sort card ,Please provide the info on this. ---Note : output file should have all records from i/p1 with proper Flag.

2 Answers  


Explain about User Information

1 Answers  


What is COND=EVEN ?

9 Answers   IBM,


What are the parameter in the job card wihtout which job won't run........

10 Answers   IBM,


wht happens if blksize = 0 and lrec = 0 ?

1 Answers   TCS,


Matching Logic in Jcl not in cobol.Could any one please answer this question

0 Answers  


What is the difference between joblib and jcllib statements

7 Answers   IBM, Maples,


Categories