I have 2 steps in my exec statement , in first step I am
creating a gdg, and the output of this step is going into
second step as a input, and this second step is abended ,
now how could i approach in this case.
Answers were Sorted based on User's Feedback
Answer / chakri
The input for second step is already created, solve the
abend and restart from the abended step
Is This Answer Correct ? | 18 Yes | 3 No |
Answer / madhuri tungal
when the job abended in step 2 then while restarting the
job from step2 the GDG has to be referred using (0) i.e
current generation insted of (+1) as in earlier case before
abend.
Please correct me if in case i am wrong....
Thanks,
Madhuri.
Is This Answer Correct ? | 18 Yes | 3 No |
In my opinion it depends of the abend.
Why was the cause of STEP2 abend? If it was because a bad
file created on STEP1 we should correct the program that
generates the file (on STEP1), uncatlg the bad GDG created,
and then resubmit the job from STEP1.
If the STEP2 cancelled and the input file is good, we should
fix the STEP2 and restart the job from STEP2 using GDG(0).
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / guest
It Depends on what type of restart it is, if no checkpoint
or UC1RMS is present, as Madhuri has suggested, we need to
make the GDG version as 0 and procedd, in case checkpoint
or UC1RMS is present, then we directly restart from the
abended step.
Is This Answer Correct ? | 0 Yes | 0 No |
Pls code GDG(0) and the data set at step 2 is created, you need to take care of this as well (may or may not created).
I am assuming created, then delete is first:
Couple of options are:
1. Manual Delete and JCL will create it again as //STEP2 ......... DD DSN=.....DISP=(new,catlg,catlg{if delete was coded hear you may ignore my steps})
2. Use IEBGBER at step0 to delete previously created d/st by DISP=(MOD,delete,delete).
Pls check, if my response is not clear let me know.
Garry
Is This Answer Correct ? | 0 Yes | 0 No |
What are the parameter in the job card wihtout which job won't run........
How is a dataset passed from one step to another?
What statement can be used to send data to another mvs jes3 node?
what happens when time=0 is given in jcl code. what happens when blksize=0 is given in jcl code. what is symbolic and overriding parameters and a example program.
//ERFDS JOB //STEP1 //STEP2 //STEP3...COND=(4,LT) //STEP4 1.CONDITION IN STEP3 REFERS TO WHICH STEP'S RETURN CODE (STEP1 OR STEP2)? 2.IN ABOVE PROGRAM IF CONDITION SATISFIES IN STEP3 WHICH STEPS WILL EXECUTE?? AND WHY? IF CONDITION IN STEP3 SATISFIES
Please go thru the below points and let me know how to code this. 1. Sort the input dataset for the condition : Starting position is 37,length of the field is 13 based on character and in the ascending order , starting from position 25 length of 12 ,character and in the ascending order. Use a temporary dataset to hold the sorted file. 2. Use the temporary file created in the above step as the input for the next step. The next step is to execute a program and produce an output file. Use the temporary file created in the above as work file 1 and the output of the file to be created in this step work file 2.Also, pass a parameter to the program that is to be executed in this step. The parameter should have the current date in YYYYMMDD format. For the sake of convenience, you can use the below Job Name : Sample1 Input DSN : PCABDT11.CABD.TEST.INPUT Temporary DSN : Sort1 Output DSN : PCABDT11.CABD.TEST.OUTPUT Program Name : SAMPLE Thanks in Advance for your response.
how to resolve the soc4 error?
what is instream data
What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?
A job has 150 steps i want to execute only 57th step
Explain how can the attributes of one sms dataset be copied to another dataset?
Explain the hierarchy levels in jcl?