BookmarkSubscribeRSS Feed
blueskyxyz
Lapis Lazuli | Level 10

**********
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;

sas1.JPG

%copy test / source;

3 REPLIES 3
ed_sas_member
Meteorite | Level 14

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,

blueskyxyz
Lapis Lazuli | Level 10
Hi ed_sas_member , thanks for sharing.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 542 views
  • 3 likes
  • 2 in conversation