小编ree*_*cec的帖子

PROC DS2性能问题

我试图使用proc ds2尝试通过使用多线程功能在正常数据步骤中获得一些性能提升.
fred.testdata是一个包含500万个观测值的SPDE数据集.我的代码如下:

proc ds2; 
   thread home_claims_thread / overwrite = yes;
   /*declare char(10) producttype;
   declare char(12) wrknat_clmtype;
   declare char(7) claimtypedet;
   declare char(1) event_flag;*/
   /*declare date week_ending having format date9.;*/
   method run();
      /*declare char(7) _week_ending;*/
      set fred.testdata;
      if claim = 'X' then claimtypedet= 'ABC';
      else if claim = 'Y' then claimtypedet= 'DEF';
      /*_week_ending = COMPRESS(exposmth,'M');
    week_ending = to_date(substr(_week_ending,1,4) || '-' || substr(_week_ending,5,2) || '-01');*/
   end;
   endthread;

data home_claims / overwrite = yes;
   declare thread home_claims_thread t;  
   method run();
      set from t …
Run Code Online (Sandbox Code Playgroud)

sas sas-ds2

5
推荐指数
1
解决办法
376
查看次数

标签 统计

sas ×1

sas-ds2 ×1