What is the opposite of Access=readonly?
Can a data set that has had been made access readonly be reverted back to read and write? How do I revert it back to access read and write?
In a LIBNAME statement, just re-run the LIBNAME without access=readonly on the end.
ACCESS=READONLY is not a dataset option, but an option of the LIBNAME statement. Therefore, if you clear the libname and re-assign the library for the same path without the option, it becomes writable.
Hello,
I guess your dataset is read-only because of the library it is residing in.
Maybe that library was assigned with the 'access=readonly' option??
Clear the libname and assign it again to the same path but without the access=readonly option. This has an effect on all library members of course!
Or the dataset was made read-only in the OS, then you have to switch off read-only on the OS as well.
Cheers,
Koen
Make a new libref. Depending on how the original libref is defined you might be able to do it using the PATHNAME() function.
libname readonly "mydirectory" access=readonly;
libname write "%sysfunc(pathname(readonly))" ;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.