I use SAS through work. They are currently in the process of moving to SAS Studio. I have a similar piece of cod ethat does work, but this one doesn't. Below is the other piece of inherited code but DOES work:- data final; set cfs_instal_fca; %let prev_m = %sysevalf(&m.-1); array arrs_bal{0:&m.} amt_delq_0 - amt_delq_&m.; array arrs_bal_inc{1:&m.} arrs_bal_inc_1 - arrs_bal_inc_&m.; array arrs_inst{1:&m.} arrs_inst_1 - arrs_inst_&m.; array min_pay{0:&prev_m.} amt_last_min_pymt_0 - amt_last_min_pymt_&prev_m.; do i=1 to &m.; j=i-1; arrs_bal_inc{i} = arrs_bal{i} - arrs_bal{j}; arrs_inst{i} = arrs_bal_inc{i} / min_pay{j}; end; max_value=max(of arrs_inst{*}); if round(max_value,0.00001)>=1 then whole_payment=1; else whole_payment=0; run;
... View more