楼主: 1029614045
1735 3

[问答] SAS Advance 130的81题 [推广有奖]

  • 0关注
  • 0粉丝

初中生

33%

还不是VIP/贵宾

-

威望
0
论坛币
6 个
通用积分
0
学术水平
3 点
热心指数
3 点
信用等级
3 点
经验
103 点
帖子
13
精华
0
在线时间
12 小时
注册时间
2014-12-4
最后登录
2015-7-10

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
楼主小白,想请教各位巨巨一道题!谢谢啦!
81. at the start of a new SAS session, the following program is submitted:
%macro one;
data_null_;
call symput('proc','means');
run;
proc &proc data=sashelp.class;
run;
%mend;
%one();
答案是the macro variable PROC is stored in the global symbol table,请问为什么不是local symbol table呢?
二维码

扫码加我 拉你入群

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

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

关键词:ADVANCE advan VANCE ance Van following local start

沙发
1029614045 在职认证  发表于 2015-5-5 16:38:19 |只看作者 |坛友微信交流群
自答:应该是l此时ocal symbol table为空,所以存到更外层的global symbol table
Call SYMPUT() 会将创建的宏变量存入到最近的非空的symbol table 中,如果运行到call symput时宏location里已经有了局部宏变量,那call symput创建的宏变量就是local的,否则就会存到更外层。 SAS HELP: "SYMPUT puts the macro variable in the most local nonempty symbol table. A symbol table is nonempty if it contains a value a computed %GOTO (A computed %GOTO contains % or & and resolves to a la ...

使用道具

藤椅
wh7064rg 发表于 2015-5-9 07:13:41 |只看作者 |坛友微信交流群
同学习

使用道具

板凳
Amandanannn 发表于 2016-2-18 03:42:04 |只看作者 |坛友微信交流群
SYMPUT is a SAS language routine that assigns value produced in a data step to a GLOBAL symbolic variable.

使用道具

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

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

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

GMT+8, 2024-5-1 23:39