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
 
Count of the existing Versions in a GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Count of the existing Versions in a GDG
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

Site Director


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

PostPosted: Mon Apr 02, 2007 11:21 pm    Post subject:
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    Post subject: Count of the existing Versions in a GDG
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: 1439
Location: Bangalore,India

PostPosted: Tue Apr 03, 2007 9:31 am    Post subject:
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    Post subject:
Reply with quote

Works fine!!

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8657
Location: Back in jolly old England

PostPosted: Tue Apr 03, 2007 1:07 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Apr 04, 2007 1:27 am    Post subject:
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    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 Creation of Datasets dynamically on t... Raghu M N DFSORT/ICETOOL 8 Fri Mar 16, 2018 12:56 am
No new posts Skip records depends on count lakshmiibmmainframes DFSORT/ICETOOL 5 Sun Dec 24, 2017 9:51 pm
No new posts ISMF Difference between volume count ... upendrasri IBM Tools 2 Tue Dec 05, 2017 12:40 pm
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am

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