Hello
Apologies if my doubt is a basic from DFSORT / ICETOOL point of view but I was not able to find it anywhere so thought of asking in this expert forum.
I have an i/p file of FB 1000 LRECL and I want to make a csv file out of this ( say of 100 byte LRECL). The i/p file has lot of fields and I want to extract only a few fields out of this in my output csv file(to be finally uploaded to an excel file). The input file contains a list of all customer accounts with fields like branch number,account number ( both in packed format) , account type( pic XX) , cleared balance(S9(8)V99 COMP-3) and a lot of other fields. The i/p file is sorted on basis of branch number and account number.
In the output file I want to aggregate the records on the basis of account type. So the output I want is something like
account type,description,cleared balance
A1,Savings account,xxxxxxxxx.xx
A2,Current account,yyyyyyyyyyy.yy
.
.
.
.
.
so on and so forth
So the above record is a total of cleared balances of all accounts belonging to account type A1. The description could be hardcoded ( if ICETOOL/SORT allows that ) . Cleared balance xxxxxxxxx.xx is the total of all cleared balance of all account belonging to A1 type