Posted: Wed Nov 07, 2007 7:08 am Post subject: Extracting last record
Hi,
I need to extract the last four records from the input file based on
pol number, latest date(yyyymmdd).
Is there any icetool or sort command to do this.
Could you please help me on this problem
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Nov 07, 2007 11:02 am Post subject:
You only show one policy number (123). Are there actual multiple policy numbers?
You show the same date for the "last" four records - is that always the case?
Please show a better example of input and output that answers these questions.
Please use code tags around your examples.
What is the RECFM and LRECL of the input file?
What is the starting position, length and format of the four fields? _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Hi,
In the file there will be many policy numbers. For each polisy number all the latest
date records should be written to output file.
RECFM=FB, LRECL=25
Polisy number X(9)
Tran Date X(10)
Indicator X(1)
Code X(5)
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
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