DATA Step, Macro, Functions and more

Setting desired file permissions on permanent SAS datasets in Unix

Reply
N/A
Posts: 0

Setting desired file permissions on permanent SAS datasets in Unix

Hi All,
We connect to SAS 9.2 server using a SAS EG 4.2 client.

In the unix server machine, we have created default mask for file permission as 002, which will enable us to create a file with 664 attributes.

If we create a new SAS data file using datalines step in Datastep, then the file is getting created with 664, but whenever we create a file by using any other source (for example a remote oracle database, SAS EG is inheriting the source file attributes and is creating the new sasdata file with same permissions. Now we would like to force the file permissions to be 664 for all the datafiles created by SAS EG (default file permission setting for permanent SAS datasets). Just like the workperms system option that works on SAS temp library files.

We don’t want to allow the users to use X and CHMOD commands in the SAS EG programs, and would like to use some option similar to workperms.

Could any of you suggest how we can create SAS datasets with desired file permissions using SAS EG 4.2?

Many thanks!

Regards,
Chandra
New Contributor
Posts: 4

Re: Setting desired file permissions on permanent SAS datasets in Unix

Posted in reply to deleted_user

Did you ever get an answer for this?  I'm looking for the same thing.  I find this option if you run a proc options; run;

 

WORKPERMS=700 Permissions to set on the SAS Work library when it is initially created.

This is similar to what I would like to know how to do but is there a similar option that could be applied to permanent directories.  Also could a user specify the option in there code so they could customize if they wanted to make a file secure?


Ask a Question
Discussion stats
  • 1 reply
  • 928 views
  • 0 likes
  • 2 in conversation