Return to Archive

SAS Tip of the Month
August 2010

The ACCESS=READONLY option in the LIBNAME statement prevents a user from updating or creating any data in that library, but does allow the user to read data in that library.

An example of its use is given below where the data in the library RAWDATA is protected (can only be read but no write access is granted), and the library DERIVED is given read and write access:

   %let project=%str(c:\taui);
   libname rawdata "&project.\rawdata" access=readonly;
   libname derived "&project.\derived";

See you in September.

Updated August 3, 2010