DATA Step, Macro, Functions and more

How to encrypt SAS codes using sas

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 10
Accepted Solution

How to encrypt SAS codes using sas

Hi forum,
Is there a way to password protect SAS codes using sas?
If so please provide code.
Thanks.

Accepted Solutions
Solution
‎01-30-2018 03:22 AM
Super User
Super User
Posts: 9,384

Re: How to encrypt SAS codes using sas

Yep, that paper describes exactly why most of our code from pre 64bit no no longer works, nor will ever work as we can't see any of it.

View solution in original post


All Replies
Super User
Posts: 9,866

Re: How to encrypt SAS codes using sas

Since SAS is at it's core an interpreter, the codes are basically open source. You can "hide" code by putting it in macros in catalogs that have a

options nosource;

included so that the code will not be displayed in the log. Have much fun maintaining such crap.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Super User
Posts: 10,681

Re: How to encrypt SAS codes using sas

You could make a Stored Compiled DATA Step Program .
Highlighted
Super User
Super User
Posts: 9,384

Re: How to encrypt SAS codes using sas

Why?  Hiding your code is just really bad practice.  Trust me, we have just lost a whole shedload of historical coding which was hidden in compiled catalogs due to the 64bit move.  The age of hidden, compiled code is hopefully over and good riddance.  

Super User
Posts: 23,224

Re: How to encrypt SAS codes using sas


Sharathr wrote:
Hi forum,
Is there a way to password protect SAS codes using sas?
If so please provide code.
Thanks.

https://amadeus.co.uk/sas-tips/how-to-keep-secret-code-secret/

 

 

Solution
‎01-30-2018 03:22 AM
Super User
Super User
Posts: 9,384

Re: How to encrypt SAS codes using sas

Yep, that paper describes exactly why most of our code from pre 64bit no no longer works, nor will ever work as we can't see any of it.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 266 views
  • 7 likes
  • 5 in conversation