存储的宏SAS的默认目录

时间:2014-09-16 14:51:07

标签: sas sas-macro

默认情况下,它定义为在WORK.SASMACR存储宏。 但是在我的站点位置,宏存储是不同的,我不知道它在哪里。 我可以找到默认的宏目录并查看其中的内容吗?

1 个答案:

答案 0 :(得分:0)

请参阅以下宏系统选项中的SASMSTORE + MSTORED和STORE选项对已编译宏位置的影响 - 可能是您网站上使用的类似内容。

option sasmstore=sasuser mstored;

%macro _mstore /store;
%put This is macro with mstore;
%mend;


%macro _nomstore;
%put This is macro without mstore;
%mend;

proc options option=sasmstore;
run;

使用DICTIONARY.CATALOGS列出会话中编译的宏。

proc sql;
create table macros as
select * from dictionary.catalogs where objtype='MACRO';
quit;
相关问题