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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 2195 views
  • 0 likes
  • 2 in conversation