登录
首页精彩阅读加密你的SAS macro程序
加密你的SAS macro程序
2016-04-20
收藏

加密你的SAS macro程序

如果别人要使用你的macro,你不想让他看到源程序,加密下就好了。具体操作如下:

*定义宏文件目录及设置相关的选项(红色部分代码,在你调用宏的程序里也要加上,这样才能直接调用你加密后的宏程序);

libname macro “F:\temp”;
options sasmstore=macro mstored mautosource;

%macro test /store;
proc print data=sashelp.class;
run;
%mend;cda数据分析师培训

执行完后,test就保存到了 F:\temp 目录下CATALOG里了,文件名:sasmacr.sas7bcat.


数据分析咨询请扫描二维码

客服在线
立即咨询