|
7#
楼主 |
发表于 2004-4-29 00:42:59
|
只看该作者
我的结果和结论与SAS_Dream非常相似,机器刚重起,没有其他作业。
我把SQL和SUMMARY的位置对调了,结果还是一样。
运行完程序后,现在机器变得暴慢!
[code:72d04]1 options fullstimer msglevel=i;
2 %let totalSize = 5000000;
3 %let DupRate = 0.8;
4
5 data total;
6 array v(*) v1 - v5;
7 do i=1 to &totalSize;
8 do j=1 to dim(v);
9 v(j) = 100 + 2 - rantbl(-1, (1 - &DupRate ));
10 end;
11 output;
12 end;
13 drop i j;
14 run;
NOTE: The data set WORK.TOTAL has 5000000 observations and 5 variables.
NOTE: DATA statement used:
real time 16.16 seconds
user cpu time 13.48 seconds
system cpu time 0.70 seconds
Memory 96k
15
16 proc sql;
17 create table out3
18 as
19 select *
20 from total
21 group by v1,v2,v3,v4,v5
22 having count(v1)>1;
NOTE: Table WORK.OUT3 created, with 32 rows and 5 columns.
23 quit;
NOTE: PROCEDURE SQL used:
real time 5:09.97
user cpu time 27.63 seconds
system cpu time 8.31 seconds
Memory 2299k
24
25 proc summary data=total nway;
26 class v1 - v5;
27 output out=out2(drop=_type_ where=(_freq_>1));
28 run;
NOTE: There were 5000000 observations read from the data set WORK.TOTAL.
NOTE: The data set WORK.OUT2 has 32 observations and 6 variables.
NOTE: PROCEDURE SUMMARY used:
real time 13.76 seconds
user cpu time 7.19 seconds
system cpu time 0.39 seconds
Memory 129k[/code:72d04]
IBM ThinkPad T23
PIII 1.13G 512M SDRAM |
|