楼主: jy02368333
1519 6

[问答] 请教一个计算时间的问题 [推广有奖]

  • 0关注
  • 0粉丝

已卖:22份资源

本科生

43%

还不是VIP/贵宾

-

威望
0
论坛币
1414 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
1 点
经验
1123 点
帖子
77
精华
0
在线时间
100 小时
注册时间
2009-10-26
最后登录
2020-2-16

楼主
jy02368333 发表于 2013-6-7 15:06:04 |AI写论文
30论坛币
请问有没谁知道怎么得到sas中程序运行的时间。比如用proc sort来对10000个观测量来进行排序,怎么输出它运行到了1000个观测量,2000个观测量,。。。的时间.悬赏不多,但是是我最后的论坛币了,希望有经验的朋友能帮我解决这个问题。



关键词:ROC SOR 论坛币 程序

沙发
Wandering_life 发表于 2013-6-7 15:31:47
花钱买呗

藤椅
scarfacetony 发表于 2013-6-7 16:38:00
坐等高手……友情帮顶
看了这个视频,我于是有了进股市的信心!
https://bbs.pinggu.org/thread-2787427-1-1.html

板凳
yongyitian 发表于 2013-6-7 22:59:13
/* try this */

data test;
   do n = 1 to 100000;
      x = int(ranuni(12345)*10000);
    output;
   end;
run;
proc sort data=test out=test_sort_x;
   by x;
run;

%let outobs=1000;
proc sql outobs=&outobs;
    create table test_sort_n as
      select *
        from test_sort_x
          order by n;
quit;
proc print data=test_sort_n; run;

报纸
jy02368333 发表于 2013-6-8 10:27:35
yongyitian 发表于 2013-6-7 22:59
/* try this */

data test;
不对把,我是要把时间显示出来额

地板
yongyitian 发表于 2013-6-8 11:45:52
jy02368333 发表于 2013-6-8 10:27
不对把,我是要把时间显示出来额
You may want to have a look at the FULLSTIMER option that is for collecting performance information on each data step.

http://support.sas.com/rnd/scalability/tools/fullstim/

Not sure if it works within a data step to monitering real time performance.

If the above does not provide what you want. You may need to process different amount data several times, then comparing the used computer time.

7
boe 发表于 2013-6-8 12:27:16
Sou yi Sou,and you may get you need...................
Gorgeous girl , I love !

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-9 09:30