There is no SAS-internal tool for setting file permissions, so you must have XCMD enabled to do it from a SAS program.
There is no SAS-internal tool for setting file permissions, so you must have XCMD enabled to do it from a SAS program.
Depending on the full context of your code & if you're on a unix based system, you could use the 'permission' option within the filename statement
Alan
Can this be used on an existing file without making any other modifications?
Will the permissions be changed if this is submitted:
filename xxx '/path/file' permission=".....";
filename xxx clear;
?
There is an option to do this too using this CAS action if you're a Viya user.
Always worth a try to see how it functions as you suggest Kurt
I tried it; you cannot change just the permission of an existing file, you must write to it.
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!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: