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
 

 

GDG Versions update status after job abends

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
venktv

New User


Joined: 29 Mar 2006
Posts: 59
Location: Montreal

PostPosted: Mon Oct 15, 2007 11:05 am    Post subject: GDG Versions update status after job abends
Reply with quote

Hi All,
Good morning...

I have a question on GDG datasets..if you know the aswer, pls respond

Job is having three steps:

Step1: Creates the GDG version 1..i.e. (+1)

Step2: uses the version +1 created at step1 and creates new version +2

Step3: Uses the version +2.

Now the question is, if my job abends at the step2, are versions updated as they are updated when the job ends successfully??, like ... the recent version is numbered as 0 at the successfull end of the job.


Thanks and regards
Venkat
Back to top
View user's profile Send private message

aishwarya_singh

New User


Joined: 06 Apr 2005
Posts: 21

PostPosted: Mon Oct 15, 2007 11:29 am    Post subject:
Reply with quote

Hi venktv,

Can you be more clear? What is your exact requirement?
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Mon Oct 15, 2007 11:38 am    Post subject: Reply to: GDG Versions
Reply with quote

Quote:
Now the question is, if my job abends at the step2, are versions updated as they are updated when the job ends successfully??,


Yes, if your job abends in step2 then your first version(+1) will still be catalogued and the availability of version(+2) depends on why the job abended in step 2.

If you restart the step from step2 then refer to the version created in step 1 as version(0) .


Quote:
updated when the job ends successfully??,


Did a Search and got this

Quote:
The datasets CAN be cataloged even if the job abends, provided that the job abends AFTER the the step that created the GDG dataset completes SUCCESSFULLY and the DISP was coded appropriately.
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: Chennai

PostPosted: Mon Oct 15, 2007 11:40 am    Post subject:
Reply with quote

Hi Venkat,

Quote:
I have a question on GDG datasets..if you know the aswer, pls respond

Job is having three steps:

Step1: Creates the GDG version 1..i.e. (+1)

Step2: uses the version +1 created at step1 and creates new version +2

Step3: Uses the version +2.

Now the question is, if my job abends at the step2, are versions updated as they are updated when the job ends successfully??, like ... the recent version is numbered as 0 at the successfull end of the job.


GDG generation and Version will be updated as soon as JOB Completes. ROLLING IN(Keeping New Version) of GDG depends on when Job was ABEND. As your question, +1 version will be updated(ROLLED IN), and If +2 version is created and used, then then this also will be updated(ROLLED IN).

When you are resubmitting Job next time Refer (+1) version as (-1) and If you wanna refer (+2) version then refer as (+0). If you don't wanna refer +2 version then delete it and again refer (+1) version as (+0).
And RESTART your Job from STEP2.

But I am clear picture of your question

Quote:
if my job abends at the step2, are versions updated as they are updated when the job ends successfully??, like ... the recent version is numbered as 0 at the successfull end of the job


Are you looking for somethig different, Then post it.
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 356
Location: New York

PostPosted: Mon Oct 15, 2007 11:49 am    Post subject:
Reply with quote

Hi,

If ur job abends in STEP2, Step1 version becomes current version (i.e. 0) for future reference if u have not coded proper DISP in STEP2 to catalog dataset in case of abend.

If u have coded proper DISP in STEP2 to catalog dataset even in case of abend, STEP2 Version becomes current version (0) and STEP1 version becomes 1st previous version (-1).

KSK
Back to top
View user's profile Send private message
venktv

New User


Joined: 29 Mar 2006
Posts: 59
Location: Montreal

PostPosted: Mon Oct 15, 2007 11:53 am    Post subject:
Reply with quote

Friends,
Just wanted to know whether versions are updated or not, if the job abends ...

Thanks for the responses..

Venkat
Back to top
View user's profile Send private message
aishwarya_singh

New User


Joined: 06 Apr 2005
Posts: 21

PostPosted: Mon Oct 15, 2007 12:11 pm    Post subject:
Reply with quote

Yes versions will be updated...
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Oct 15, 2007 9:33 pm    Post subject:
Reply with quote

Quote:
Yes, if your job abends in step2 then your first version(+1) will still be catalogued and the availability of version(+2) depends on why the job abended in step 2.

NO, it does not, it depends on the DISP parameters coded in the JCL.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Tue Oct 16, 2007 10:57 am    Post subject: Reply to: GDG Versions update status after job abends
Reply with quote

Quote:
NO, it does not, it depends on the DISP parameters coded in the JCL.


Yes, I agree it also depends on the DISP parameters coded in the JCL. Missed mentioning in my earlier post.
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 Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
This topic is locked: you cannot edit posts or make replies. session stuck in TPX with status ACL amitc23 CA Products 1 Tue Dec 13, 2016 12:53 pm


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