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

How to count the no of versions created for a GDG


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 771
Location: Germany

PostPosted: Tue Nov 07, 2006 3:02 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
No new posts Count the number of characters in a f... CA Products 1
Search our Forums:

Back to Top