SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

12
返回列表 发新帖
楼主: shiyiming
打印 上一主题 下一主题

To Ahuige

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
11#
 楼主| 发表于 2010-3-17 14:12:39 | 只看该作者

Re: To Ahuige

Are there have other solutions in sas8.1? Maybe the procedure of Ahuige is effective in sas9.2. Looking forward to be solved in sas8.1!!!
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
12#
 楼主| 发表于 2010-3-29 13:59:55 | 只看该作者

Re: To Ahuige

using CALL EXECUTE in a data step. for example, like the following code, where %ada & %real are two macros for boost algorithm involking a data step for computation, respectively

[code:3k4wu3cg]
     data  _boostinfo;
              set &outdsn.(firstobs=1  obs=1);
              dsn="&dsn";
             %if (&type eq 1) %then %do;                                               
                  call execute('%ada(' || compress(dsn)         || ','
            %end;
            %else %do;                                             
                  call execute('%real(' || compress(dsn)         || ','
           %end;
                                       || compress(cut_val)    || ','
                                       || compress(varname)  || ','
                                       || compress(c_L)         || ','
                                       || compress(c_R)         || ');'
                                  );
             drop dsn;
      run;                         

[/code:3k4wu3cg]
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2026-3-3 15:56 , Processed in 0.127004 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表