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

Count of the existing Versions in a GDG


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ihatesugar
Warnings : 1

New User


Joined: 22 Oct 2006
Posts: 43

PostPosted: Mon Apr 02, 2007 11:03 pm
Reply with quote

Please let me know the way by which we can know the count of the existing versions under a Particular GDG Base.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Apr 02, 2007 11:21 pm
Reply with quote

Hello,

Try tso 3.4. When you put in the base dsn, the system will show you all of the cataloged versions.

If you're looking for anything else, let us know.
Back to top
View user's profile Send private message
ihatesugar
Warnings : 1

New User


Joined: 22 Oct 2006
Posts: 43

PostPosted: Tue Apr 03, 2007 9:25 am
Reply with quote

hi ,

Actually i ma looking for the count in a JCL for further processing.I mean i want to know the count of existing versions under a particular GDG base thru a JCl and use this count for further processing!!!
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Tue Apr 03, 2007 9:31 am
Reply with quote

ihatesugar,

Use LISTCAT ALL option in IDCMAS. The NONVSAM value at the end of SYSPRINT (in the spool) indicates the number of existing generations (i.e., gives count like 2 or 6 etc...).

Let us know, if you need more help in this regard.
Back to top
View user's profile Send private message
jetumax

New User


Joined: 02 Dec 2005
Posts: 8
Location: Mysore, INDIA

PostPosted: Tue Apr 03, 2007 1:04 pm
Reply with quote

Works fine!!

Thanks
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Apr 03, 2007 1:07 pm
Reply with quote

Just a little intrigued as to why you need to know the number of existing versions. Would you care to elaborate a little ?
Back to top
View user's profile Send private message
ihatesugar
Warnings : 1

New User


Joined: 22 Oct 2006
Posts: 43

PostPosted: Tue Apr 03, 2007 10:33 pm
Reply with quote

Hi expat,

I was actually trying to figure out a way to implement FIFO... then realised it wont work by having the count and using it to pick up the oldest version of GDG relatively icon_biggrin.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Apr 04, 2007 1:27 am
Reply with quote

Hello,

No, but you could use the fully qualified dsn and process FIFO. . . When you run the LISTCAT you can see all of the versions fully qualified.
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 Adding first / last acct numerber to ... DFSORT/ICETOOL 7
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
Search our Forums:

Back to Top