Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 8593
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 abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Update the Sortout file with record c... karthik_sripal SYNCSORT 8 Tue May 17, 2016 8:52 pm
No new posts CQM : Exec count is 0 but getpages &g... soundarr DB2 1 Thu Mar 17, 2016 10:08 pm
No new posts z/OS V2R2 Migration Impact on Existin... dexter.mozer All Other Mainframe Topics 4 Mon Feb 29, 2016 6:22 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us