全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1511 4
2014-02-16
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




二维码

扫码加我 拉你入群

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

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

全部回复
2014-2-16 09:30:19
拜读
二维码

扫码加我 拉你入群

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

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

2014-2-21 00:32:03
Thanks for sharing.
二维码

扫码加我 拉你入群

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

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

2014-3-18 10:52:57
好高深的样子
二维码

扫码加我 拉你入群

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

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

2014-3-21 23:51:08
thanks for sharing~~
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群