BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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
1 REPLY 1
benfirst321
Calcite | Level 5

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?


sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 2062 views
  • 0 likes
  • 2 in conversation