IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

If an abend occurs in previous step, will the gdg be created


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vbhat

New User


Joined: 29 Apr 2005
Posts: 38

PostPosted: Mon May 09, 2005 10:44 am
Reply with quote

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
View user's profile Send private message
sanaanil

New User


Joined: 14 Apr 2005
Posts: 5
Location: Bangalore

PostPosted: Mon May 09, 2005 11:13 am
Reply with quote

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
View user's profile Send private message
brain_s390

New User


Joined: 06 May 2005
Posts: 58
Location: Mumbai

PostPosted: Mon May 09, 2005 11:49 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon May 09, 2005 11:58 pm
Reply with quote

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
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Tue May 10, 2005 1:07 am
Reply with quote

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
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Tue May 10, 2005 1:12 am
Reply with quote

Forgive the intrusion if I'm incorrect, but doesn't it all depend upon the DISP= in step 1?


Dave
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Tue May 10, 2005 1:17 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue May 10, 2005 1:24 am
Reply with quote

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
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Tue May 10, 2005 1:34 am
Reply with quote

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. icon_biggrin.gif


Dave
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts ISAM and abend S03B JCL & VSAM 9
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
Search our Forums:

Back to Top