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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 429 views
  • 0 likes
  • 2 in conversation