View previous topic :: View next topic
|
Author |
Message |
vbhat
New User
Joined: 29 Apr 2005 Posts: 38
|
|
|
|
There are 5 steps
//job1 restart=s5
//s1 dsn= gdg(+1)
//s2
//s3 abend occurs
//s4
//s5 this step refers gdg(+1) created in s1
Q1) if an abend occurs in s3 will the gdg be created?
Q2) how to refer this version in s5
please help me in this
vbhat |
|
Back to top |
|
|
sanaanil
New User
Joined: 14 Apr 2005 Posts: 5 Location: Bangalore
|
|
|
|
As GDG gets updated only after the completion of the JOB, you need to refer the GDG in Step5 as (+1).
Regards
Anil Kumar Sana |
|
Back to top |
|
|
brain_s390
New User
Joined: 06 May 2005 Posts: 58 Location: Mumbai
|
|
|
|
IF abend occurs in step3 then new version wont be created due to not good EOJ(Enod of job).
Step-5 will refer the (+1) version.
Pls correct me if i am wrong !! |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Well, vbhat, what do YOU think of the responses? I would suggest that you create a test of your requirements and let us all know what results you get. |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
Hey vbhat,
If your S1 step is successful then your GDG will be created. Then to refer the GDG you need to restart the job from the abended step and in S5 step, refer the GDG as gdg(+0).
For more information check the following link:
ibmmainframes.com/viewtopic.php?p=6672#6672 |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
Forgive the intrusion if I'm incorrect, but doesn't it all depend upon the DISP= in step 1?
Dave |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
Quote: |
doesn't it all depend upon the DISP= in step 1? |
yes Ofcourse. But if we need to refer the same GDG again, I dont think we will give the disp in such a way to delete that. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I agree. It would be rather silly to create a new generation with a disposition of NEW,DELETE or MOD,DELETE or NEW,PASS or MOD,PASS. |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
Not necessarily true.
You may NEW,PASS,DELETE until a final step catalogs passed datasets.
This will serve to make all jobs "job restartable" rather than "step restartable" except for update in place datasets like in VSAM.
This was a shop standard at my prev employer.
The example given was unclear as specified, but I concede that NEW,CATLG is reasonably implied with specification restart at S5.
Dave |
|
Back to top |
|
|
|