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;

 

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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