Synsort for subtotal

Tue, 12/20/2011 – 18:25


Synsort for subtotal

I am looking for a sort job that can do subtotal for me.

Sample input file

A 100

A 200

A 300

B 100

A 200

B 500

Sample output file

A 800

B 600

I think this can be achieved by using syncsort SUM function, can someone share me an example for doing the subtotal using syncsort.

Click the +1 button  below to share it with your friends and colleagues

Share this if you liked it!