DATA Step, Macro, Functions and more

Import ACCESS database to SAS 9.4

Reply
New Contributor
Posts: 4

Import ACCESS database to SAS 9.4

I have a ACCESS database which includes tons of tables and I try to import to SAS to manage those tables.

I wirte Proc import but an Error message keep pop out "ERROR: Failed to connect to the Server: ."
NOTE: The SAS System stopped processing this step because of errors.

Here is the SAS code I write,

PROC IMPORT OUT=WORK.TEST
TABLE="ALL Hb ID"
DBMS=ACCESSCS REPLACE;
DATABASE="U:\Databases\SCD_DATA.ACCDB";
RUN;

 

Does any one know how to solve this problem? I don't want to export each table to EXCEL  and then import to SAS.

I am so afraid that I will lost data when I export to EXCEL and import to SAS.

 

Thank you

Super User
Posts: 3,100

Re: Import ACCESS database to SAS 9.4

Using DBMS = ACCESSCS implies you are making use of the SAS PC Files Server. The error message suggests you are unable to connect to this server. This type of error could arise if you don't have the SAS PC Files Server installed and running either on your own PC or on another Windows server, or if it is running remotely and you haven't supplied the correct connection details. 

Ask a Question
Discussion stats
  • 1 reply
  • 136 views
  • 0 likes
  • 2 in conversation