The new option(SECURE | NOSECURE) will hide the codes wrapped up within a macro definition.
SECURE | NOSECURE causes the contents of a macro to be encrypted when stored in a stored compiled macro library. This feature enables you to write secure macros that will protect intellectual property that is contained in the macros. The macros are secured using the Encryption Algorithm Manager.
A NOSECURE option has been implemented to aid in the global edit of a source file or library to turn on security (for example, when you are creating several macros that will need to be secure). When creating the macros, use the NOSECURE option. When all macros are completed and ready for production, you can do a global edit and change NOSECURE to SECURE.
If you use the SECURE and SOURCE options on a macro, no output is produced when you use the %COPY statement. The following NOTE is written to the SAS log:
NOTE: The macro %name was compiled with the SECURE option. No output will be produced for this %COPY statement.
STMT
10 LIBNAME test 'c:\downloads';
11 OPTIONS MSTORED SASMSTORE=test;
12 %MACRO test / STORE SECURE ;
13 *options nomprint nosource;
14
15 DATA A;
16 X=1;
17 RUN;
18 %MEND;
19
20 options mprint;
21 %test
NOTE: The data set WORK.A has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.65 seconds
cpu time 0.03 seconds