I need to create just one report where the total amount and count should be divide in CRE and DEB. The amount to sum is the position. Could you please help to sortout it? thanks.
The input file is:
0123456789012345678901234
01071020140000000003700DR
01071020140000000005000DR
01071020140000000002000CR
01071020140000000005000DR
01071020140000000001700CR
The report that we need to have is:
REPRT01 INCOMING PAYMENTS
0015 2014/10/06-12:34 SPP01 PAYMENTS INCOMING FILE - 01
RECORD COUNT OF RECORDS - 3 2
TOTAL AMOUNT OF RECORDS - 137,00 - 37,00
Detail position 01,02
Position amount 10,13
CR/DR position 23,02
Thanks fro your help