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

How to list out only the latest generation of GDGs


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Fri Jun 06, 2008 12:23 am
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

Global Moderator


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

PostPosted: Fri Jun 06, 2008 12:56 am
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
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: 8797
Location: Welsh Wales

PostPosted: Fri Jun 06, 2008 12:00 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Fri Jun 06, 2008 12:13 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Jun 06, 2008 12:23 pm
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: 8797
Location: Welsh Wales

PostPosted: Fri Jun 06, 2008 12:35 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts Compare latest 2 rows of a table usin... DB2 1
Search our Forums:

Back to Top