BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mlm155
Obsidian | Level 7

Assume I write a libname as follows:

libname ReferenceName "Path_to_the_folder" access = readonly;

and there are multiple data files in that location (eg: ABC.sas7bdat, XYZ.sas7bdat, PQR.sas7bdat).

My question is: does READONLY access get applied to all of the above data files or do I have to specifically mention that for the file I want to deal with?

Thanks for the support everyone.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

From the documentation:

 

READONLY

assigns a read-only attribute to an entire SAS library. SAS does not allow you to open a data set in the library in order to update information or write new information.

 

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.2/lestmtsglobal/n1nk65k2vsfmxfn1wu17fntzszbp...

 


@mlm155 wrote:

Assume I write a libname as follows:

libname ReferenceName "Path_to_the_folder" access = readonly;

and there are multiple data files in that location (eg: ABC.sas7bdat, XYZ.sas7bdat, PQR.sas7bdat).

My question is: does READONLY access get applied to all of the above data files or do I have to specifically mention that for the file I want to deal with?

Thanks for the support everyone.

 


 

View solution in original post

2 REPLIES 2
Reeza
Super User

From the documentation:

 

READONLY

assigns a read-only attribute to an entire SAS library. SAS does not allow you to open a data set in the library in order to update information or write new information.

 

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.2/lestmtsglobal/n1nk65k2vsfmxfn1wu17fntzszbp...

 


@mlm155 wrote:

Assume I write a libname as follows:

libname ReferenceName "Path_to_the_folder" access = readonly;

and there are multiple data files in that location (eg: ABC.sas7bdat, XYZ.sas7bdat, PQR.sas7bdat).

My question is: does READONLY access get applied to all of the above data files or do I have to specifically mention that for the file I want to deal with?

Thanks for the support everyone.

 


 

mlm155
Obsidian | Level 7
Thanks 🙂

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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