MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Get latest record in a GDG

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
gans79
Beginner


Joined: 31 Aug 2005
Posts: 51
Topics: 27

PostPosted: Fri Jan 23, 2009 8:21 am    Post subject: Get latest record in a GDG Reply with quote

Hi,
I have a GDG with limit 10, LRECL - 80, Account (1 - 9, CH)
How to i get only the latest record from all the generations ?
That is, if the account is present in File.Gen(-2) and File.Gen(-4) It should only pick up the account in File.Gen(-2) in my output .

Thanks
gans79
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Fri Jan 23, 2009 8:34 am    Post subject: Reply with quote

If all of the generations were concatenated together with the most recent generations at the top, and you use a selection for the first occurence of the account only, wouldn't that do what you need?
Back to top
View user's profile Send private message
gans79
Beginner


Joined: 31 Aug 2005
Posts: 51
Topics: 27

PostPosted: Fri Jan 23, 2009 8:58 am    Post subject: Reply with quote

Hi superk,
What do i specify in the sort card to select the first occurance ?

Thanks
gans79
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group