View previous topic :: View next topic |
Author |
Message |
gans79 Beginner
Joined: 31 Aug 2005 Posts: 51 Topics: 27
|
Posted: Fri Jan 23, 2009 8:21 am Post subject: Get latest record in a GDG |
|
|
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 |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Fri Jan 23, 2009 8:34 am Post subject: |
|
|
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 |
|
 |
gans79 Beginner
Joined: 31 Aug 2005 Posts: 51 Topics: 27
|
Posted: Fri Jan 23, 2009 8:58 am Post subject: |
|
|
Hi superk,
What do i specify in the sort card to select the first occurance ?
Thanks
gans79 |
|
Back to top |
|
 |
|
|