Re: Merging matching records from two files
Posted: Mon Jan 02, 2012 8:59 pm
Hi Enrico,
There is little problem with the your code I used. I just found now.
Data is copying correct but for the first record of each key, it is indenting more value(original layout from byte 1) from file2 from left, as soon as I replace BUILD=(1,80)) to BUILD=(14,66))
Eg
./ ADD NAME=AB123
AB000000 07 0000001 123
AB000000 07 0000002 123
AB000000 07 0000003 123
output as
./ ADD NAME=AB123
AB000000 07 0000001 123
000002 123
000003 123
000002 123
000003 123
Please see if you can fix this.
There is little problem with the your code I used. I just found now.
Data is copying correct but for the first record of each key, it is indenting more value(original layout from byte 1) from file2 from left, as soon as I replace BUILD=(1,80)) to BUILD=(14,66))
Eg
./ ADD NAME=AB123
AB000000 07 0000001 123
AB000000 07 0000002 123
AB000000 07 0000003 123
output as
./ ADD NAME=AB123
AB000000 07 0000001 123
000002 123
000003 123
000002 123
000003 123
Please see if you can fix this.