Here is the code. As far as the waste of space issue, I was naming the variable for my new dataset (i.e Fallout_date=Fallout_date). DATA FLOWFRED.FMFLOW_LOANSDROPPED_TOT_RPT; SET FLOWFRED.FMFLOW_LOANSDROPPED_RUN_TOT; RETAIN RUNNING_NOTE_BALANCE_15YR; RETAIN RUNNING_NOTE_BALANCE_20YR; RETAIN RUNNING_NOTE_BALANCE_30YR; FALLOUT_DATE=FALLOUT_DATE; NOTE_BALANCE_15YR=NOTE_BALANCE_15YR; retain RUNNING_NOTE_BALANCE_15YR 0; RUNNING_NOTE_BALANCE_15YR=SUM(RUNNING_NOTE_BALANCE_15YR,NOTE_BALANCE_15YR); NOTE_BALANCE_20YR=NOTE_BALANCE_20YR; retain RUNNING_NOTE_BALANCE_20YR 0; RUNNING_NOTE_BALANCE_20YR=SUM(RUNNING_NOTE_BALANCE_20YR,NOTE_BALANCE_20YR); NOTE_BALANCE_30YR=NOTE_BALANCE_30YR; retain RUNNING_NOTE_BALANCE_30YR 0; RUNNING_NOTE_BALANCE_30YR=SUM(RUNNING_NOTE_BALANCE_30YR,NOTE_BALANCE_30YR); run; proc print data=flowfred.fmflow_loansdropped_tot_rpt; run;
... View more