I have a file as shown below:
A
A
B
B
C
C
C
D
D
A
B
B
C
C
C
D
D
Using above file as input , I want to create a o/p file as:
A 0002 0009 22.22
B 0002 0009 22.22
C 0003 0009 33.33
D 0002 0009 22.22
B 0002 0009 22.22
C 0003 0009 33.33
D 0002 0009 22.22
I could create only the counts using sumfields.
Can anyone suggest , how to add total of all records and % in the same record.
LRECL is no issue .Please assume FB 80 for input. for output any Lrecl or format is ok.
Thanks.