6# soporaeternus
不敢当。HOPELWELL,你知道其中的缘故吗?我用的是9.22
使用pobel的test数据(较小的数据集),结果如下
580 data test;
581 do n=1 to 100;
582 a=ranuni(1);
583 output;
584 end;
585 run;
NOTE: The data set WORK.TEST has 100 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
586
587
data b;
589 set test;
590 array t{5} _temporary_;
591 if _n_ >5 then v =pctl(95, of t
);
592 t[5 -mod(_n_, 5)] =a;
593 run;
NOTE: There were 100 observations read from the data set WORK.TEST.
NOTE: The data set WORK.B has 100 observations and 3 variables.
NOTE: DATA statement used (Total process time):
real time 0.03 seconds
cpu time 0.03 seconds
不知道为什么总是贴不好。