Pick the latest record using SORT.
Posted: Sat Sep 10, 2016 11:08 am
Hi,
I need help in a SORT related request. Please see below:
The input file is has records like this:
I want to generate an output like this. In which I wnat to keep only the latest record.
So, from the series:
In output I only want
And same for every series. Can this be done in SORT. Elese I would need a program. Please help
I need help in a SORT related request. Please see below:
The input file is has records like this:
Code: Select all
XXXX8558011
XXXX8558012
XXXX8558013
YYYY9559011
YYYY9559012
YYYY9559013
ZZZZ7557011
ZZZZ7557012
ZZZZ7557013
I want to generate an output like this. In which I wnat to keep only the latest record.
Code: Select all
XXXX8558013
YYYY9559013
ZZZZ7557013
So, from the series:
Code: Select all
XXXX8558011
XXXX8558012
XXXX8558013
Code: Select all
XXXX8558013