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
 

 

How to count the no of versions created for a GDG

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

New User


Joined: 03 Nov 2005
Posts: 19

PostPosted: Tue Nov 07, 2006 2:49 pm    Post subject: How to count the no of versions created for a GDG
Reply with quote

Hi all,

I have one GDG i would like to count the no of versions created for the GDG base.

Thanks,
Deva.
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Tue Nov 07, 2006 3:02 pm    Post subject:
Reply with quote

Hi !

By defining a GenerationDataGroup you have to specify a Limit. That's the number of max generations you can create in order. By reaching the max, a turn around will happen and the oldest one will become the newest one.

With every create of a GDG, for ex. DSN=HUGO you code in JCL:

//OUTPUT DD DSN=HUGO(+1)

So now a File is created with DSN HUGO.G000V01

By next run, it's HUGO.G000V02 and then HUGO.G000V03

You could simply use TSO 3.4 with HLQ of your DSN to see all allocated
generations.

In my ex. here HUGO.G000V03 is the latest one, wich also means the newest one.

Regards, UmeySan
Back to top
View user's profile Send private message
Indrajit_57
Warnings : 1

New User


Joined: 27 Jun 2006
Posts: 60

PostPosted: Tue Nov 07, 2006 7:11 pm    Post subject:
Reply with quote

Use the IDCAMS LISTC GDG utility
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 abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Update the Sortout file with record c... karthik_sripal SYNCSORT 8 Tue May 17, 2016 8:52 pm
No new posts CQM : Exec count is 0 but getpages &g... soundarr DB2 1 Thu Mar 17, 2016 10:08 pm
No new posts JCL SORT to split the file and put re... Bill Woodger DFSORT/ICETOOL 17 Wed Feb 17, 2016 4:17 pm


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