全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2960 3
2009-12-04
%macro one(input);
%two
%mend;
%macro two;
data _null_;
call symputx(’date’, ’12SEP2008’, ’L’);
run;
%put the value is &date;
%mend;
%let date = 31DEC2006;
%one(&date)

为何date是从two的local table出来?date 值是31dec2006 然后在变成12sep2008 从一开始一直是global啊?symputx里的‘L’ 是指local? 'G'是global? 资料里没见过啊
l
ibname A ’SAS library reference’;
libname F ’SAS library reference’;
options fmtsearch = (A F.X);
What is the second location searched for formats? 为何是work.formats? 按书上不是work.formats-library formats-a.formats-f.x吗?
二维码

扫码加我 拉你入群

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

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

全部回复
2009-12-13 08:41:09
楼主BASE考过了吧?介绍一下经验和分享一下材料哦~谢谢!!
二维码

扫码加我 拉你入群

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

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

2009-12-13 10:01:51
1查帮助,题注意symputx 与 symput 的区别。

2.可以加我qq 19892161
二维码

扫码加我 拉你入群

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

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

2009-12-15 00:45:43
1# yuyyy

Let me try to answer the two questions:

1. the values in the global and local tables are distint now. If without using 'L' in symputx function, the global one will be updated to '12SEP2008', tantamount to the local one.
However,  here 'L' (=%local) in symputx function forces newly created '12SEP2008' to stay locally while leaves the global one '31DEC2006', unchanged.

2. work and library are always prior to those user-defined-formats libraries except for the cases like "options fmtsearch = (A F.X work library)", where you forciblly define the order
while "options fmtsearch = (A F.X)" just informs SAS where to look for the formats in addition to the default ones, work and library.
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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