BookmarkSubscribeRSS Feed
Tal
Pyrite | Level 9 Tal
Pyrite | Level 9

Hi,

So i  have Access Database  with 2 tables dropped in one of the  folders in the share drive by another  team.

I need to import the  tables in EG SAS(Remote) and i even moved that db in my unix  folders.

 

When  trying to import the tables using the  proc  import  wizard  i get the  attached message

 

and  when running the  libname  code  from below  i get the  following error:

 

LIBNAME mylib pcfiles PATH="xxx/External/yy/xx.accdb";

 

ERROR: The SERVER= option is required for establishing a connection through the SAS/ACCESS Interface to PC Files.

 

What Server option they talking about if i have it all  in   UNIX?

Anyone please

 

PS. i have  office 2010  so it has to be  that system driver  thing whatever that means

 


error.PNG
5 REPLIES 5
ballardw
Super User

Try it without PCFILES in the libname statement.

 

 

Tal
Pyrite | Level 9 Tal
Pyrite | Level 9

without pcfiles:

 

LIBNAME mylib path="&ROOTNAME/External/CP_Data/CPData_LOC_&CP_DATE1..accdb";

 

ERROR: Libname MYLIB is not assigned.

ERROR: Error in the LIBNAME statement.

 

or:

LIBNAME mylib "&ROOTNAME/External/CP_Data/CPData_LOC_&CP_DATE1..accdb";

 

ERROR: Library MYLIB is not in a valid format for access method RANDOM.

ERROR: Error in the LIBNAME statement.

 

 

tried proc import:

 

PROC IMPORT OUT= SLOCCov DATATABLE= "SLOCCov" DBMS=ACCESS REPLACE;

DATABASE="&ROOTNAME/External/CP_Data/CPData_LOC_&CP_DATE1..accdb";

SCANMEMO=YES;

USEDATE=NO;

SCANTIME=YES;

RUN;

 

ERROR: DBMS type ACCESS not valid for import.

 

rogerjdeangelis
Barite | Level 11

If you can post a sample accdb I am reasonably positive I can convert the tables to SAS datasets. Do not need MS acess and can handle 32 and 64bit, all can be done with the IML interface to R.

 

You can test your code using

 

SAS provides sample accdb

 

C:\Program Files\sashome\SASFoundation\9.4\access\sasmisc

demo.accdb

LinusH
Tourmaline | Level 20
Isn't a PC Files Server required when accessing MS Access data from UNIX?
http://support.sas.com/documentation/cdl/en/acpcref/69731/HTML/default/viewer.htm#p1ejcl3x1j6su3n1r6...
Data never sleeps
Tal
Pyrite | Level 9 Tal
Pyrite | Level 9

but my access data is in  unix already. I transferred the access database to my UNIX SAS folders

Will i still need the  pc file server?

sas-innovate-2024.png

 

Time is running out to save with the early bird rate. Register by Friday, March 1 for just $695 - $100 off the standard rate.

 

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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