- %let m = 10;
- data test;
- retain x0 x1 x2 (1 2 3);
- do i = 1 to 20;
- if i in (1,2,3) then xt = i;
- else do;
- if mod(i,3) = 1 then do;
- xt = x0 + &m;
- x0 = xt;
- end;
- else if mod(i,3) = 2 then do;
- xt = x1 + &m;
- x1 = xt;
- end;
- else if mod(i,3) = 0 then do;
- xt = x2 + &m;
- x2 = xt;
- end;
- end;
- output;
- end;
- drop i x0 x1 x2;
- run;


雷达卡




京公网安备 11010802022788号







