SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
hellohere
Pyrite | Level 9

Say need to let someone at another city to run a home-made SAS macro,  AND does not want to expose the coding

details, HOW TO DO IT?! Thanks, 

4 REPLIES 4
hellohere
Pyrite | Level 9

First is this feasible, to send over without code exposing? 

Second, if yes, how to do it?!

The guy is using the same SAS platform. 

ChrisHemedinger
Community Manager

Others might chime in with some best practices, but basically you can use the STORE and SECURE options for compiling a macro to a SAS catalog file that you can share. The SECURE option prevents the user from seeing the source code.

 

Documentation about these options here.

Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!
ballardw
Super User

Don't lose your source code. We've had several requests for recovering the code from such secure compiled macros and that has been a no-go.

 

Compiled macro catalogs are also version specific to a great extent. If you compile the code with SAS 9.4.7 and the other person is using 9.4.4 it may not run. Or on a different OS.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 4 replies
  • 666 views
  • 2 likes
  • 4 in conversation