如果别人要使用你的macro,你不想让他看到源程序,加密下就好了。具体操作如下:
*定义宏文件目录及设置相关的选项(红色部分代码,在你调用宏的程序里也要加上,这样才能直接调用你加密后的宏程序);
libname macro “F:\temp”;
options sasmstore=macro mstored mautosource;
%macro test /store;
proc print data=sashelp.class;
run;
%mend;
执行完后,test就保存到了 F:\temp 目录下CATALOG里了,文件名:sasmacr.sas7bcat.
不错不错,正好用到,也稍微深入研究了一下。等会发篇新文章出来。