Hi all,
I'm facing an issue about SASUSER library and I don't find any solution.
in /sas/config/lev1/sasapp/workspaceserver/WorkspaceServer_usermods.sh
export SASUSER=$(id -un)
in /sas/config/lev1/sasapp/sasv9_usermods.cfg
-SASUSER "/sas/sasuser/$SASUSER/"
in the filesystem
lrwxrwxrwx. 1 sas sas 13 Oct 6 17:19 sasuser -> share/sasuser in /sas/share drwxrwsrwt. 4 sas sas 50 Dec 16 15:47 sasuser
via the filesystem, I can create a file with a user who is member of the sas group.
But via Enterprise Guide, if I try to create a dataset in SASUSER library (/sas/sasuser/<userid>), I receive the following error message:
ERROR: Write access to member SASUSER.TEST.DATA is denied.
What I missed ?
many thanks for your help
Mike
You might describe why you think you need to work with SASUSER.
Revealed wisdom for many iterations of SAS, going back to version 6, is that you should not really be using the SASUSER library for data. Create other libraries for your data. SASUSER is supposed to be for things like the preferences of your use such as appear in the Profile catalog.
Check the RSASUSER SAS option in your SAS session by running this:
proc options option = rsasuser;
run;
If you see this:
34 proc options option = rsasuser;
35 run;
SAS (r) Proprietary Software Release 9.4 TS1M2
RSASUSER Opens the Sasuser library in Read-Only mode.
NOTE: PROCEDURE OPTIONS used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
the option is set on you will get the behaviour you are seeing:
34 data sasuser.class;
35 set sashelp.class;
36 run;
ERROR: Write access to member SASUSER.CLASS.DATA is denied.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
Do you really have a symbolic link to a relative path? That seems like a bad idea.
lrwxrwxrwx. 1 sas sas 13 Oct 6 17:19 sasuser -> share/sasuser
Do you even have a share subdirectory? Does it contain a sasuser directory?
But let's assume you have figured out the paths properly then the error message is saying the the directory you pointed SASUSER to for this user is one that this user cannot write to. So the permissions on that directory are wrong.
What are the permission on that directory for the userid you are using?
Is it owned by that userid? Is the user write bit set?
Is the user at least the group that owns the directory? Is the group write bit set?
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.
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.