BookmarkSubscribeRSS Feed
Ishaan
Calcite | Level 5

I have MS ACCESS file with .accdb extension. It has three tables. I am trying to read one of the tables but getting error while reading it. I tried import wizard in enterprise guide. It’s working perfectly.

When I am trying to use proc import or tried reading using libname statement I am getting error.

My file is in UNIX server.

 

PROC IMPORT OUT= WORK.abc1

     DATATABLE= "temp"

     DBMS=ACCESSCS REPLACE;

     DATABASE="/users/ind/user1/temptable.accdb";

     server="abd.sas";

     port= 22;

     SCANMEMO=YES;

     USEDATE=NO;

     SCANTIME=YES;

run;

ERROR: A socket routine returned error: An unexpected error has occurred. Error number is 0.

ERROR: Failed to connect to the Server:

2 REPLIES 2
DartRodrigo
Lapis Lazuli | Level 10

Hi mate,

 

Check Connection is refused and socket errors occur when you are using the SAS® PC Files Server and

Error Allocating CLI Environment and Socket Errors when using the PC File Server.

 

One question only

 

Does your company uses firewalls or stuff like that ?

In this case, the system administrator must make a port available for the SAS PC Files Server.

 

This might help

 

Ishaan
Calcite | Level 5

Thanks.

My SAS server is grid server. I came to know that I can not import the access db ditectly to SAS GRID server. I am able import it in PC/BASE SAS using proc import and libname statement.

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1431 views
  • 0 likes
  • 2 in conversation