楼主: crackman
2536 2

[原创博文] the global and the local macro symblo table [推广有奖]

已卖:401份资源

院士

83%

还不是VIP/贵宾

-

威望
6
论坛币
91928 个
通用积分
23.5045
学术水平
424 点
热心指数
505 点
信用等级
256 点
经验
112978 点
帖子
2940
精华
0
在线时间
2532 小时
注册时间
2007-4-26
最后登录
2025-6-25

初级热心勋章 中级热心勋章 初级学术勋章 初级信用勋章

楼主
crackman 发表于 2010-4-7 08:44:04 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
The global symbol table is
created during the initialization of a SAS session or noninteractive execution
initialized with automatic or system-defined macro variables
deleted at the end of the session.
Macro variables in the global symbol table
are available anytime during the session
can be created by your program
have values that can be changed during the session (except some automatic macro variables)
cannot be removed once they are created (they can be assigned a null value).
A local symbol table is
created when a macro with a parameter list is called or a request is made to create a local variable during macro execution
deleted when the macro finishes execution.
The local symbol table contains macro variables that can be
created and initialized at macro invocation (parameters)
created during macro execution
updated during macro execution
referenced anywhere within the macro.
二维码

扫码加我 拉你入群

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

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

关键词:Global lobal Macro Table Local available assigned created except cannot

回帖推荐

bobguy 发表于2楼  查看完整内容

" .... cannot be removed once they are created (they can be assigned a null value)." This is absolete. After SAS introduces the "%SYMDEL". See below. 1 %let gmvar=glabol_var; 2 3 %put >>>&gmvarglabol_var>&gmvar&gmvar

本帖被以下文库推荐

沙发
bobguy 发表于 2010-4-8 08:33:46
crackman 发表于 2010-4-7 08:44
The global symbol table is
created during the initialization of a SAS session or noninteractive execution
initialized with automatic or system-defined macro variables
deleted at the end of the session.
Macro variables in the global symbol table
are available anytime during the session
can be created by your program
have values that can be changed during the session (except some automatic macro variables)
cannot be removed once they are created (they can be assigned a null value).
A local symbol table is
created when a macro with a parameter list is called or a request is made to create a local variable during macro execution
deleted when the macro finishes execution.
The local symbol table contains macro variables that can be
created and initialized at macro invocation (parameters)
created during macro execution
updated during macro execution
referenced anywhere within the macro.
" .... cannot be removed once they are created (they can be assigned a null value)."

This is absolete. After SAS introduces the "%SYMDEL". See below.


1    %let gmvar=glabol_var;
2
3    %put >>>&gmvar<<<;
>>>glabol_var<<<
4
5    %SYMDEL gmvar;
6
7    %put >>>&gmvar<<<;
WARNING: Apparent symbolic reference GMVAR not resolved.
>>>&gmvar<<<
已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 3 精彩帖子

总评分: 经验 + 3  论坛币 + 3   查看全部评分

藤椅
crackman 发表于 2010-4-8 12:35:44
2# bobguy
bobguy
thank you
i  find this function in macro in help manual
i wanna to learn from u

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-2-5 04:14