Hi,
My project requirement is like the below
1)I/P file: FB and LRECL=9
Contains records like the below
Accnt no Amnt Sign(1Byte)
<1-4> <5-8> <9>
0001 0010 +
0001 0010 -
0001 0010 +
0002 0020 +
0002 0020 +
0003 0030 -
0003 0030 -
0003 0030 -
0004 0040 +
0005 0050 +
0005 0050 +
Input file has duplicate account records and for each account there will be maximum of 3 records.
Output file should have only one record per account and need to sum the amounts in position 5-8 considering the sign in position 9.
2)O/P should be
<1-4> <5-8> <9>
0001 0010 +
0002 0040 +
0003 0090 -
0004 0040 +
0005 0100 +
Thanks a lot
Naveen