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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 815 views
  • 0 likes
  • 4 in conversation