I am assuming that date will be unique otherwise replace it with a unique row identifier.
data temp;
input date : date9. amt;
format date date9.;
datalines;
1JAN2013 45
2JAN2013 31
3JAN2013 65
;
run;
proc sql;
select a.date, a.amt, (select SUM(b.amt) from temp as b where b.date <= a.date) as running_total
from temp as a
order by a.date;
quit;
2025 SAS Hackathon: There is still time!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!