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-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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