全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1790 4
2010-11-01
what is the three ways to define a macro?

one is %let;
one is call symput;
what is the last one?
Is there a way by a data _null_?

please give some examples.
请教大家, 十分感谢!!
二维码

扫码加我 拉你入群

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

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

全部回复
2010-11-1 07:14:56
** I bet you mean 'macro variable';

%let aaa=the first way;
%put ------->&aaa;

data test;
     x="the second way";
         y="the third way";
         call symputx('bbb',x);
run;
%put ------->&bbb;

proc sql noprint;
     select y into : ccc from test;
quit;
%put ------->&ccc;
二维码

扫码加我 拉你入群

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

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

2011-2-19 17:32:12
the good ideas. thank you very much
二维码

扫码加我 拉你入群

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

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

2011-2-19 19:04:11
%do 也算是吧,呵呵
二维码

扫码加我 拉你入群

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

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

2011-2-19 20:13:18
复制代码
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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