全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3441 3
2010-03-02
option mprint mlogic symbolgen;
data test1;
  length a1 $10  a2 8 a3 8 a4 8;
  do i=1 to 30;
     output;
  end;
run;
%macro test(cond=);
   proc sql;
      create table test as
   select i, count(*) as cnt
   from test1
   where &cond
       ;
   quit;
%mend test;
%test(cond=a2 eq .);
%test(cond=%str(a2 eq . ));   /*解释下错在哪?如何解决?*/
%test(cond=%quote(a2 eq .));
二维码

扫码加我 拉你入群

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

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

全部回复
2010-3-2 20:47:32
%test(cond=%str(a2 eq %str(.) ));
二维码

扫码加我 拉你入群

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

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

2010-3-2 22:08:23
losttemple 发表于 2010-3-2 20:47
%test(cond=%str(a2 eq %str(.) ));
Do you know why?
二维码

扫码加我 拉你入群

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

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

2010-3-3 09:10:39
%str 并不mask period(.) 那%str(.)在这有什么意义呢?
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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