Posted: Thu Sep 13, 2007 6:26 am Post subject: Trailer count without any duplicates
Hi,
I have a file with Header, Detail and Trailer records. The file is having a length of 200 and is fixed block
The records looks as below:
A20070810
B12343567
B23456789
B34567890
B12343567
C2007081000004
The record starting with 'A' represents Header, B represents the detail records and C represents the Trailer.
The C record is having the number of count of detail records.
Using sort we need to remove the duplicates in detail records. After the duplicates are removed, the C records should be updated with the new count of detail records.
Please suggest, if this can be achieved using sort
_________________ 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
Last edited by Frank Yaeger on Thu Sep 13, 2007 1:35 pm; edited 1 time in total
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