How can I directly import data from SQL server to SAS? Is there sample code? Thank you!
you can do this by defining libname as shown below or by doing explicit pass through
LIBNAME SQL ODBC DSN=’sql server’ user=sasjlb pw=pwd;
Below two papers will be to give lot of info on this
https://support.sas.com/techsup/technote/ts765.pdf
http://analytics.ncsu.edu/sesug/2002/DM10.pdf
First you need to connect to SQL and that depends on your system set up.
Thank you for response!
you can do this by defining libname as shown below or by doing explicit pass through
LIBNAME SQL ODBC DSN=’sql server’ user=sasjlb pw=pwd;
Below two papers will be to give lot of info on this
https://support.sas.com/techsup/technote/ts765.pdf
http://analytics.ncsu.edu/sesug/2002/DM10.pdf
Thank you!
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!
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.