**********
http://support.sas.com/kb/22/352.html
https://blogs.sas.com/content/sgf/2017/08/21/always-save-your-code-when-creating-a-stored-compiled-m...
**********;
libname mymacro 'D:\W\Code_lib\mymacro';
options mstored sasmstore=mymacro;
%macro test(arg) / store source des="test of the source option" secure;
%put arg = &arg;
data one;
x=1;
run;
%mend test;
%copy test / source;
Hi @blueskyxyz
As far as I know, the SECURE option is here to prevent reverse engineering of macro code to occur. The goal of this option is to protect source code and prevent its extraction. In practice, it temporarily disables the MPRINT and MLOGIC options so that nothing appears in the log.
Here is an interesting paper about this topic: http://www.mwsug.org/proceedings/2011/appdev/MWSUG-2011-AD13.pdf
Hope this helps,
Best,
You're welcome ![]()
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.