Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access=readonly to already defined libraries

Status
Not open for further replies.

eguva

Programmer
Jun 23, 2007
27
US
Hi,

I have a file with all libnames defined.They all have write access.Now how can I make all the defined libraries or a few selected ones readonly.
I can get the librefs,paths from dictionary.memn=bers and can create a macro to give readoly access to all opf the defined liobraries.
I was wondering if there is any option or can we change the libname stetement options in a separate step?

Eguva
 
I'd say that using the Dictionary tables to build statements to redefine the libraries as you said would be the best option.

Chris
Business Analyst, Code Monkey, Data Wrangler.
SAS Guru.
 
Hi Chris,

It looks like the options for libname cannot be changed once defined.Its wierd.
Anyways, here is another question.

Libname test "C:\test";
Libname yesy1(test) access=readonly;

I think this should word right.This should give read only access to the library right?

Thanks,
Kiran
 
Apparently not. I just tried this and it still let me write out to a dataset in yesy1.

Try doing this instead...
Code:
Libname test "C:\tempsas";

Libname test "C:\tempsas" access=readonly;

Chris
Business Analyst, Code Monkey, Data Wrangler.
SAS Guru.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top