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