View previous topic :: View next topic
|
Author |
Message |
ihatesugar Warnings : 1 New User
Joined: 22 Oct 2006 Posts: 43
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
ihatesugar Warnings : 1 New User
Joined: 22 Oct 2006 Posts: 43
|
|
|
|
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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
|
jetumax
New User
Joined: 02 Dec 2005 Posts: 8 Location: Mysore, INDIA
|
|
|
|
Works fine!!
Thanks |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
ihatesugar Warnings : 1 New User
Joined: 22 Oct 2006 Posts: 43
|
|
|
|
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 |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|