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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 364 views
  • 1 like
  • 2 in conversation