Hello everyone,How can I use SAS SQL Library for C to get sas data by C++? please heip me,thank you every much.
Sorry, but don't understand what you plan to do.
Thank you for your reply. I want to use vs c++ to access the SAS dataset by using SAS SQL Library for C,but i do not know how to use it .Do you know how to use it ?
Can you tell us about your final objective? Are you trying to read a local SAS data set or a remote data set from a SAS server? SAS has packaged two OLE DB data providers -- one for local and one for remote (Integration Technologies). These can be easily incorporated into custom Windows applications. You can use SQL syntax to address/filter data.
See some examples here:
https://blogs.sas.com/content/sasdummy/tag/ole-db/
And here:
Create your own client app with SAS Integration Technologies
hello,I wnat to use VS C++ to access the SAS dataset ,the method is optional,the simpler is the better,do you know about using ODBC or OLEDB to acess the data,which is easier to reach my goal? Could you provide some references about this to me ? Thank you very much.
Find information here: https://support.sas.com/downloads/package.htm?pid=2171
You need a SAS/SHARE and SAS/IntrNet license and a properly set up SAS/SHARE server.
After installation, I'd go looking for the .h header files and the .a or .so library file(s). Add the path to the library files to your LIBPATH environment variable, so the compiler can pick it up.
OK,Thank you very much,you are so kind.
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.