If your data is complete ... meaning that all months are accounted for with nothing missing in the middle of the series ... the code is relatively easy:
data want;
set have;
back16 = lag16(num);
num_sum + num;
num_sum = sum(num_sum, -back16);
run;
... View more