BookmarkSubscribeRSS Feed
TinaLuse
Calcite | Level 5

My office runs regular SAS codes that are quite complex.  Recently one of them was changed in a minor way that caused it not to run without anyone knowing.  WAs wondering if there was a way to create a read only SAS file that would still process but would close it for edits?  Thank you.

1 REPLY 1
Tom
Super User Tom
Super User

Depends on what system you are using.  The most secure is to change the permission on the file at the operating system level.

 

The easiest way is to make sure to use the ACCESS=READONLY option when defining the libref that points to the file.  Then users cannot use that libref to modify any of the datasets.  You will just make sure that users are doing that consistently.

libname ourdata '/some path' access=readonly;

 

 

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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
  • 1 reply
  • 901 views
  • 1 like
  • 2 in conversation