Hi, I have a SAS dataset I would like to import into Microsoft Access.
This is the first time I am setting up a link to SAS from outside and I'm not sure how to go about doing it
Import or link?
Old school and robust is to Export the SAS data set to a CSV file (there is a wizard that should do this) and use the Access import on that file. If the SAS data set is static this may be the easiest for someone with little SAS experience.
If the SAS data will change and you want to link the question might be whether you are comfortable with ODBC to set up an ODBC link.
If you have the SAS product SAS/ACCESS to PC FILES then you can use PROC EXPORT to write a SAS dataset to an ACCESS table: https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=acpcref&docsetTarget=p1d0...
In a client/server environment, you need to set up a SAS/SHARE server on the SAS server, and install the SAS ODBC driver on the host where MS ACCESS runs. Then define the ODBC connection to your SAS server, and use that in Access.
Hi KurtBremser, thanks for your reply, I searched how I can do that. First step, check if I have SAS/SHARE. Came across this thread, which you also answered back in 2018. I don't see SAS/SHARE, PRODNUM010 nor PRODNUM035 when I run proc setinit and proc product_status. Does it mean this route is a dead end for me?
I fear, yes.
The requirements for the ODBC driver are found here.
What OS does your SAS server run on? You could always get the SAS server to write the Access database to a network file share which is also accessible from your PC.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.