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
 

 

How to list out only the latest generation of GDGs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
niceguy

New User


Joined: 21 May 2008
Posts: 7
Location: chennai

PostPosted: Thu Jun 05, 2008 7:38 pm    Post subject: How to list out only the latest generation of GDGs
Reply with quote

hi,
Is there any way to list out only the latest generation of GDG like
hlq1.hlq2.hlq3.abc11(0)
hlq1.hlq2.hlq3.abc12(0)
hlq1.hlq2.hlq3.abc13(0)

Please suggest.
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: Fri Jun 06, 2008 12:23 am    Post subject:
Reply with quote

Hello,

Where/how do you want them listed?

The (0) is a relative generation and doesn't provide any info icon_confused.gif

Please post more completely what you have and what you want as "output".

Once we understand what you are looking for, we may be able to offer suggestions.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Jun 06, 2008 12:56 am    Post subject: Reply to: How to list out only the latest generation of GDGs
Reply with quote

I think this previous topic may be what you want.
Back to top
View user's profile Send private message
niceguy

New User


Joined: 21 May 2008
Posts: 7
Location: chennai

PostPosted: Fri Jun 06, 2008 11:58 am    Post subject:
Reply with quote

To be more specific, my requirement is like follows.

consider the limit as 5

hlq1.hlq2.hlq3.abc11.G0001V00
hlq1.hlq2.hlq3.abc11.G0002V00
hlq1.hlq2.hlq3.abc11.G0003V00
hlq1.hlq2.hlq3.abc11.G0004V00
hlq1.hlq2.hlq3.abc11.G0005V00

hlq1.hlq2.hlq3.abc12.G0003V00
hlq1.hlq2.hlq3.abc12.G0004V00
hlq1.hlq2.hlq3.abc12.G0005V00
hlq1.hlq2.hlq3.abc12.G0006V00
hlq1.hlq2.hlq3.abc12.G0007V00

hlq1.hlq2.hlq3.abc13.G0009V00
hlq1.hlq2.hlq3.abc13.G0010V00
hlq1.hlq2.hlq3.abc13.G0011V00
hlq1.hlq2.hlq3.abc13.G0012V00
hlq1.hlq2.hlq3.abc13.G0013V00

hlq1.hlq2.hlq3.abc14.G0009V00
hlq1.hlq2.hlq3.abc14.G0010V00
hlq1.hlq2.hlq3.abc14.G0011V00
hlq1.hlq2.hlq3.abc14.G0012V00
hlq1.hlq2.hlq3.abc14.G0013V00

like this i have 1000s of GDGs. now i need to list only the latest versions(bolded). is this possible?
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: Fri Jun 06, 2008 12:00 pm    Post subject:
Reply with quote

Dare I ask why this information is so important
Back to top
View user's profile Send private message
niceguy

New User


Joined: 21 May 2008
Posts: 7
Location: chennai

PostPosted: Fri Jun 06, 2008 12:09 pm    Post subject:
Reply with quote

i need to monitor the number of tracks used everyday by this GDGs(created on that day). it is not possible to check manually since the numbers are very huge.
is there any otherway to find.
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: Fri Jun 06, 2008 12:13 pm    Post subject:
Reply with quote

Take a look at the DFSORT smart tricks documentation supplied by Frank on his SORT forum.

In it , he has a working code example to find out space usage, which I think that you could change to suit your requirement.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Fri Jun 06, 2008 12:23 pm    Post subject: Reply to: How to list out only the latest generation of GDGs
Reply with quote

or again look at the ISMF reporting options

I wonder why such an helpful application is unknown to most people and seldom used

most of the reporting needs being asked here can be satisfied by ISMF
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: Fri Jun 06, 2008 12:35 pm    Post subject: Re: Reply to: How to list out only the latest generation of
Reply with quote

enrico-sorichetti wrote:
or again look at the ISMF reporting options

I wonder why such an helpful application is unknown to most people and seldom used

most of the reporting needs being asked here can be satisfied by ISMF


Sigh .......... and you have only mentioned this excellent service about five times very recently.
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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts reorder screeNS using SWAP LIST? mrsidhu12 TSO/ISPF 5 Thu Sep 01, 2016 2:19 pm
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts Getting list of tables defined under ... kishpra DB2 2 Wed Aug 24, 2016 10:36 am


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