全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2433 2
2010-04-07
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.
二维码

扫码加我 拉你入群

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

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

全部回复
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<<<
二维码

扫码加我 拉你入群

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

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

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
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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