assuming your data is stored in dataset x, and x is already sorted by cust field:
data y;
set x;
by cust;
length cumulative 8.;
retain cumulative;
cumulative = sum(cumulative, count);
run;
don't have anything to test the code on, so if there's an error just post it back here :)