楼主: bobguy
1246 4

[学习分享] parallel computing in data step (SAS 9.4) [推广有奖]

学科带头人

7%

还不是VIP/贵宾

-

威望
0
论坛币
14187 个
通用积分
28.9279
学术水平
344 点
热心指数
363 点
信用等级
228 点
经验
104882 点
帖子
1846
精华
0
在线时间
1608 小时
注册时间
2008-7-18
最后登录
2019-3-8

中级热心勋章

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
SAS 9.4 has parallel-processing feature in data step and other procs. Here is an example in data step.

   /* The following DATA step creates the input for the DS2 program. */
data in;

   do i = 1 to 1e8; /*5e8*/
   output;
end;
run;

proc means data=in sum;
var i;
run;

   /* This is the beginning of the DS2 program. */
proc ds2;
thread sumer / overwrite = yes encrypt=SAS;
drop i;
dcl double s;
   method run();
      set in;
      s + i;
   end;

   method term();
      output;
   end;
endthread;
run;

data ;
dcl double tot having format 16.0;
dcl double s having format 16.0;

dcl thread sumer s_inst;

   method run();
      set from s_inst threads=4;
      tot + s;
   end;
enddata;
run;
quit;

data _null_;
  set in end=end;
  s+i;
  if end then put s= 16.;
run;

for more information one may look at,

http://support.sas.com/documentation/cdl/en/lrcon/67227/HTML/default/viewer.htm#n0czb9vxe72693n1lom0qmns6zlj.htm
http://support.sas.com/documentation/cdl/en/whatsnew/64788/HTML/default/viewer.htm#n14c8glgh3j7hxn1b1byjs3sqnvz.htm
http://blogs.sas.com/content/sgf/2013/10/02/parallel-processing-in-sas-when-and-how-to-use-it/
Parallel processing in SAS: when and how to use it




二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Data step computing Parallel Paralle Comput computing

已有 2 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
webgu + 60 + 60 + 3 + 3 + 3 新东西
Imasasor + 100 + 100 + 5 + 4 精彩帖子

总评分: 经验 + 160  论坛币 + 160  学术水平 + 8  热心指数 + 7  信用等级 + 3   查看全部评分

沙发
linusx 发表于 2014-2-16 09:30:19 |只看作者 |坛友微信交流群
拜读

使用道具

藤椅
zhenghui28 发表于 2014-2-21 00:32:03 |只看作者 |坛友微信交流群
Thanks for sharing.

使用道具

板凳
huyiustc 发表于 2014-3-18 10:52:57 |只看作者 |坛友微信交流群
好高深的样子
我是御皇香案吏,谪居犹住在瀛洲

使用道具

报纸
doulaAmeng 发表于 2014-3-21 23:51:08 |只看作者 |坛友微信交流群
thanks for sharing~~

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-29 02:17