BookmarkSubscribeRSS Feed
Juan_Dolvez
Calcite | Level 5

Hi SAS Community, 

I would like to import an Access DB from my computer into SAS but SAS is asking for a server address. i tried to use my local IP but nope, didnt like that. 

Heres an example of my code. Any ideas or suggestions for me?

Also, i stole an example program so my port is whatever that person had their port set to.

 

libname myhome "<my actual home folder address>";

PROC IMPORT Table='LS_Training_Tracking_Dashboard'
DBMS=ACCESSCS
OUT= myhome.LS;
DATABASE='C:\Users\222015388\A bunch of databases\LS - Tracking Table.accdb';
Server='what the heck goes here?!?!!?!?';
PORT=9621;
DBDSOPTS='READBUFF=30';
RUN;

1 REPLY 1
SASKiwi
PROC Star

DBMS=ACCESSCS means you are referencing the SAS PC Files Server which has to be installed or running either on your PC or on another Windows file server. You can just use DBMS = ACCESS if SAS is actually running on your PC and your Access database is stored there too. Just bear in mind that SAS and Access have to be the same bitness (32-bit or 64-bit) for this to work. If the bitness doesn't match then you will need to revert to ACCESSCS.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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