I have a requirement in which i need to sum up all the records and output only one record showing the total sum.
The field in the input record to summed up is of Packed decimal type with 2 decimal places(length = 5).
The output file should contain the total value in PD, length = 7 with 4 decimal places.
Say for example, i have 100 records in the input file, each having value 1.11 (in PD format). The field in the input record to be summed up is 10,5
My output record should contain the value 110.0000(in PD format)
Note: My shop has only SYNCSORT.
Please let me know if you need any other information.