Hi, I have a similar scenario data x; input a b c; datalines; 1 1 10 2 1 10 3 1 10 4 2 20 5 3 30 6 3 30 7 1 100 8 1 100 9 2 50 ; run; I want the result as follows a b c cumab 1 1 10 10 2 1 10 20 3 1 10 30 4 2 20 20 5 3 30 30 6 3 30 60 7 1 100 100 8 1 20 120 9 2 50 50 The column "a" keeps the same order and I want the sum of the column "c" based on the values in the column "b". Could you help my to calculate the column"cumab" as in the above table? Thanks and Regards, Retheesh Ravi.
... View more