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
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 |
Answer / divakar
you writing restart=step03in joblevelor activity level
| Is This Answer Correct ? | 3 Yes | 0 No |
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 |
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 |
once we submitted the job to the operating system, how can we cancel the job before execution?
Hi, I have 3 files say file A , file B and file C.I want to form an output file in which i will have all the records from file A. Files B and C also may contain records that are present in file A.I want those records also to be included in my output file. for eg: file A contains: 1 2 3 file B contains: 2 4 5 file C contains: 1 3 5 So in my output file should look like: 1 2 3 2 1 3 Can any one help ???.....thanks in advance.
How can you trap abends in the JCL?
Write a jcl to execute a job by 7 a.m on Jan 20,1986 ?
I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this:
If your job fails at particular step then what would be the return code for next steps
what is pupose and meaning of the REGION keyword and what jcl statement is it associated with?
What does SYSIN * indicate?
What is the error code SOC01 indicate ?
01 A. 10 B pic X(10). move spaces to A. move spaces to B. output in A & B
What statement marks the end of an in-stream or catalogued procedure?
Suppose there r total 10 steps. Out of which i want to execute only the 7th step. How can i do that....????