BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
hmadams
Calcite | Level 5

I acquired a piece of code and I am getting an error I have not been able to solve

It has a libname statement like this.

  libname  test       'C:\test';

 

I have checked that the directory C:\test exists and I have RW access

When I try to write to this library for example

data test.new;
	a=1;
run;

I get the error

ERROR: Write access to member TEST.NEW.DATA is denied.

 

Any help would be appreciated

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

SAS obeys OS permissions. Where is your SAS running? Locally on your PC or remotely on a server.

View solution in original post

6 REPLIES 6
Reeza
Super User

Post the error messages you get from the log. 

 

If you're using EG or SAS UE it cannot see your C drive and you need to use a mapped drive in UE. In EG you would need to talk to your administrator.

 

 

hmadams
Calcite | Level 5
Thank you for the response

The problem is specific to this folder. I can change the libname path to other folders on this drive and it will work.

I can navigate to the folder with windows explorer and create a new subfolder, so I thought it was an issue on the SAS side not with my network permissions.

The error is
ERROR: Write access to member TEST.NEW.DATA is denied.
SASKiwi
PROC Star

SAS obeys OS permissions. Where is your SAS running? Locally on your PC or remotely on a server.

hmadams
Calcite | Level 5

Locally on PC

hmadams
Calcite | Level 5

hmadams_0-1608696158575.png

It does seem there is some R/W issue at work here. I thought testing that I could create a subfolder was enough. I am going to mark this solved. Thank you

Reeza
Super User
That may be an explicit lockdown. You often do that to ensure people are not writing to the C drive. Otherwise any data on there could in theory be saved onto the hard drive and then it's a security issue that needs to be monitored. A network drive can be wiped remotely and is backed up in comparison.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 6 replies
  • 8054 views
  • 0 likes
  • 3 in conversation