My requirement is that I need to sum up fields FIELD1 and FIELD2 for each record under
one key and write single record for each key in the output file with KEY field and
total value. In the above example file I have two keys. Assuming FIELD1 and FIELD2 values for first KEY records are 100.00 and 110.00 & for second record key FIELD1 AND FIELD2 values are 200.00 and 220.00 respectively. As comp-3 fields can't be displayed in browse mode I am unable to show them in above inputfile.
The totals beside first and second key should be 1050.00 and 2100.00
For exampl calculation for first key is (100.00 + 110.00)*5 = 1050.00
As I assumed FIELD1 and FIELD2 values to be equal for all 5 records I have shown it as multiplication by 5, in real scenario they will be different.
Please let me know how can I achieve this using DFSORT or ICETOOL. _________________ Thanks
Madhu Sudhan
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum