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?


hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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