BookmarkSubscribeRSS Feed
Addison
Fluorite | Level 6

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

1 REPLY 1
SASKiwi
PROC Star

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. 

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
  • 1 reply
  • 2209 views
  • 0 likes
  • 2 in conversation