楼主: yuyyy
2804 3

[原创博文] 请教2道adv的题目? [推广有奖]

  • 0关注
  • 0粉丝

高中生

67%

还不是VIP/贵宾

-

威望
0
论坛币
12 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
3010 点
帖子
36
精华
0
在线时间
15 小时
注册时间
2009-7-23
最后登录
2017-1-22

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
%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吗?
二维码

扫码加我 拉你入群

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

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

关键词:Reference Location formats Library options reference library formats second local

沙发
ChaseDreams 发表于 2009-12-13 08:41:09 |只看作者 |坛友微信交流群
楼主BASE考过了吧?介绍一下经验和分享一下材料哦~谢谢!!

使用道具

藤椅
G_will 发表于 2009-12-13 10:01:51 |只看作者 |坛友微信交流群
1查帮助,题注意symputx 与 symput 的区别。

2.可以加我qq 19892161

使用道具

板凳
jingju11 发表于 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.

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-6-16 01:48