楼主: fxf258
14348 24

如何给sasmacr文件加密 [推广有奖]

21
ddd1000 发表于 2009-8-12 11:03:17
it's not able to do that function in sas

22
bobguy 发表于 2010-2-2 07:26:21
nkwilling 发表于 2009-4-23 12:17
LIBNAME test 'D:\';OPTIONS MSTORED SASMSTORE=test;%MACRO test / STORE ;options nomprint nosource;    DATA A;X=1;RUN;%MEND;这部分是你编译的宏代码。LIBNAME test 'D:\';OPTIONS MSTORED SASMSTORE=test;%test;这部分是你提供给用户的接口和调用你开发的宏。
Though one cannot de-compile a macro to get the source code completely, one is able to see some of SAS codes within the compiled macro.

Open the compiled stored macro macro with a note pad, one can see,

DATA A; X=1; RUN;

I attach it below.

Sorry too long to attached it here.

23
sasjunior 发表于 2016-5-31 10:06:48
nkwilling 发表于 2009-4-23 12:17
LIBNAME test 'D:\';OPTIONS MSTORED SASMSTORE=test;%MACRO test / STORE ;options nomprint nosource;&nb ...
您的方法我试了很好用,但是不是只限于我自己的电脑或者如果别人想要使用,是不是需要先将宏在对方电脑里运行一次(libname .......)才行?那我能否写成一个程序包封装,然后对方拷贝之后,实现同样的效果,直接可以实现只能调用不可读呢?

24
mnigsl 发表于 2017-2-21 11:28:42
nkwilling 发表于 2009-4-23 16:52
我刚刚咨询过SAS顶级高手,你所说的SAS口令是没有的,至少在SAS里面是这样,至于是否需要借助其它的编程语言 ...
大神你好,代码封装后,在SAS中确实隐藏了源代码,但是SASMACR以文本形式打开时仍然可看到代码,这个有什么方法解决吗?

25
wanlixing1208 发表于 2019-11-28 18:18:26
你好我问个题外问题,生成的sasmacr被人调用后,我想再更新这个macro的时候 提示被lock ,就无法实时顺利更新,你有碰到过这个困扰么。如何解决 谢谢

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-28 21:42