I have a flat file that contains an 11 byte voucher number field and 4 amount fields, each are ZD of 14.
I need to summarize or total up the 1st amount field if the voucher numbers are the same.
Sample records... The xxx's are the voucher number, the 999's is the field i want to sum up. Spaces are inserted for readability.
...............................xxxxxxxxxxx....99999999999999
PN N1000006689 N1000006689 003 XLR00004676 01 00000002550000 00000018989000 00000006545000
PN F2000002408 F2000002408 003 XJD00006212 09 00000000054018 00000011420000 00000000000000
PN F2000002408 F2000002408 003 XJD00006212 10 00000000015365 00000011420000 00000000000000
PN F2000002408 F2000002408 003 XJD00006212 08 00000000078448 00000011420000 00000000000000
PN F2000002408 F2000002408 003 XJD00006212 07 00000000041424 00000011420000 00000000000000
PN N1000005111 N1000005111 003 PJD00037451 01 00000000565704 00000007071301 00000007071300
PN N1000006689 N1000006689 003 XLR00004676 01 00000002550000 00000018989000 00000006545000
PN F2000002408 F2000002408 003 XJD00006212 09 00000000054018 00000011420000 00000000000000
PN F2000002408 F2000002408 003 XJD00006212 10 00000000015365 00000011420000 00000000000000
PN F2000002408 F2000002408 003 XJD00006212 08 00000000078448 00000011420000 00000000000000
PN F2000002408 F2000002408 003 XJD00006212 07 00000000041424 00000011420000 00000000000000
PN N1000005111 N1000005111 003 PJD00037451 01 00000000565704 00000007071301 00000007071300
Result..
...............................xxxxxxxxxxx....99999999999999
PN N1000006689 N1000006689 003 XLR00004676 01 00000002550000 00000018989000 00000006545000
PN F2000002408 F2000002408 003 XJD00006212 09 00000000189255 00000011420000 00000000000000
PN N1000005111 N1000005111 003 PJD00037451 01 00000000565704 00000007071301 00000007071300
PN N1000006689 N1000006689 003 XLR00004676 01 00000002550000 00000018989000 00000006545000
PN F2000002408 F2000002408 003 XJD00006212 09 00000000189255 00000011420000 00000000000000
PN N1000005111 N1000005111 003 PJD00037451 01 00000000565704 00000007071301 00000007071300
Thanks,
clay