BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Sharathr
Obsidian | Level 7
Hi forum,
Is there a way to password protect SAS codes using sas?
If so please provide code.
Thanks.
1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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

5 REPLIES 5
Kurt_Bremser
Super User

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.

Ksharp
Super User
You could make a Stored Compiled DATA Step Program .
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.  

Reeza
Super User

@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/

 

 

RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 5 replies
  • 2134 views
  • 7 likes
  • 5 in conversation