Hello,everyone,who has a programming case for C++ to access the SAS dataset through ODBC ?, Could you send me one? Thank you every much.
From your previous questions, you shared that you are using Visual C++. I'll assume that you have access to the various Windows developer frameworks: MFC and/or ATL.
Remember that accessing SAS via ODBC is supported only if your data is on a SAS/Share server or in a SAS SPDS environment. You can't read a sas7bdat file directly -- for that, you use OLE DB.
Otherwise, use standard Visual C++ techniques for connecting to your SAS ODBC driver. See this topic on MSDN for a start.
No, see information about the SAS ODBC driver here, and its uses.
But what's wrong with using OLE DB? That's a standard approach that can work with Microsoft development tools. And we have a special book of "recipes" for different data access scenarios.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.