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

Following Libname statement works in SAS EG but not in Base SAS (when deployed a scheduled job through SAS Mamagement console).

 

BASE SAS:

libname CSCData access path='\\xxxxxx\00. Datastore\xxxxxData1.accdb';

 

ERROR: Connect: The Microsoft Access database engine cannot open or write to the file '\\xxxxxx\00. Datastore\xxxxxData1.accdb'. It is already opened exclusively by another user, or you need permission to view and write its data.
ERROR: Error in the LIBNAME statement.

 

SAS EG:

libname CSCData access path='\\xxxxxx\00. Datastore\xxxxxData1.accdb';
NOTE: Libref CSCDATA was successfully assigned as follows:
Engine: ACCESS
Physical Name: \\xxxxxx\00. Datastore\xxxxxData1.accdb

 

Any solution is greatly appreciated. Is there a OPTION statement to resolve this issue.

1 ACCEPTED SOLUTION

Accepted Solutions
timeless
Fluorite | Level 6

Sorry folks, it was a SAS server problem. When I deployed the code in a different SAS server it worked.

View solution in original post

4 REPLIES 4
timeless
Fluorite | Level 6

User is the same, login with the same ID

ballardw
Super User

You also need to investigate the first part of the error

 

ERROR: Connect: The Microsoft Access database engine cannot open or write to the file '\\xxxxxx\00. Datastore\xxxxxData1.accdb'. It is already opened exclusively by another user, 

 

If someone else is using the file access is blocked.

timeless
Fluorite | Level 6

Sorry folks, it was a SAS server problem. When I deployed the code in a different SAS server it worked.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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