>Could someone provide me the answer how to calculate cumulative values in
>Apply SAS code and the output should be:
>x y y_cum
>1 3 3
>2 5 8
>3 7 15
>Thank you in advance!
I see that you have received several solutions.
But if you have to do this for more than one level of some grouping
variable, then it might be easier to do this using PROC EXPAND.
David L. Cassell
3115 NW Norwood Pl.
Corvallis OR 97330
Who's that on the Red Carpet? Play & win glamorous prizes.