Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: If an abend occurs in previous step, will the gdg be created
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    Post subject: Re: There are 5 steps
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    Post subject: Re: If an abend occurs in previous step, will the gdg be cre
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

Moderator Team Head


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

PostPosted: Mon May 09, 2005 11:58 pm    Post subject: Re: If an abend occurs in previous step, will the gdg be cre
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    Post subject:
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:

http://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: 239
Location: Cincinnati OH USA

PostPosted: Tue May 10, 2005 1:12 am    Post subject:
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    Post subject:
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

Moderator Team Head


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

PostPosted: Tue May 10, 2005 1:24 am    Post subject: Re: If an abend occurs in previous step, will the gdg be cre
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: 239
Location: Cincinnati OH USA

PostPosted: Tue May 10, 2005 1:34 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts How to get previous month in SYMNAMES Suganya87 SYNCSORT 9 Fri Oct 28, 2016 1:37 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us