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.
Answer Posted / 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 |
Post New Answer View All Answers
when can a job time-out occur? How to overcome that?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
Name the statement which can be used to send data to another mvs jes3 node?
What do you understand by the term notcat 2 – gs?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
How can return codes be tested before execution of a job step?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Can we use DISP=SHR in output file in JCL
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
What is the function of job statement in jcl?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
What dd statement is used to supply the name of a dataset?