Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 757
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 column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us