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
 
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: 4650
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: 8657
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: 8657
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: 10457
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: 8657
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 How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts List of jobs ran thru scheduler ddhar All Other Mainframe Topics 1 Tue Mar 27, 2018 4:32 am
No new posts How could i share my personal dataset... James Halley TSO/ISPF 1 Fri Mar 23, 2018 9:41 pm
This topic is locked: you cannot edit posts or make replies. How could i share my personal dataset... samenxia163 TSO/ISPF 1 Fri Mar 09, 2018 12:18 pm
No new posts Get the list of data sets on DASD and... rakaitn JCL & VSAM 3 Thu Mar 08, 2018 12:38 pm

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