Depends on how the month variables are named. Here is an example that might be helpful. data new; m1=1; label m1='New m1'; run; data m24; array m[24] (1:24); run; data m24u; merge new m24(drop=m24 rename=(m1-m23=x2-x24 x2-x24=m2-m24)); run; proc contents varnum; run;
... View more