DATA Step, Macro, Functions and more

Using VS C++ to access SAS dataset

Reply
Occasional Contributor LXL
Occasional Contributor
Posts: 16

Using VS C++ to access SAS dataset

Hello everyone ,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 SAS data,which is easier to reach my goal? Could you provide some references about this to me ? Please help me.Thank you very much.

Respected Advisor
Posts: 4,797

Re: Using VS C++ to access SAS dataset

Occasional Contributor LXL
Occasional Contributor
Posts: 16

Re: Using VS C++ to access SAS dataset

Thank you for your reply , do you mean that it is easier to access the SAS dataset with ODBC?
Community Manager
Posts: 3,462

Re: Using VS C++ to access SAS dataset

Use ODBC to connect to a SAS server that is running SAS/Share, which is basically a dedicated process to serve up SAS data.

 

Use OLE DB to connect to a local SAS data set (sas7bdat) using the SAS Local OLE DB provider, or to a remote SAS Workspace running SAS Integration Technologies (same as used by SAS Enterprise Guide).  For the remote case, use the SAS IOM OLE DB provider.  Both are available for download from support.sas.com.

 

See the SAS OLE DB "cookbook".

Occasional Contributor LXL
Occasional Contributor
Posts: 16

Re: Using VS C++ to access SAS dataset

Posted in reply to ChrisHemedinger
OK, I would like to use ODBC to access the SAS dataset , thank you very much.
Occasional Contributor LXL
Occasional Contributor
Posts: 16

Re: Using VS C++ to access SAS dataset

Posted in reply to ChrisHemedinger
Could you tell me that what is the easiest method for me to use VC++ to acess SAS dataset? Thank you every much.
Ask a Question
Discussion stats
  • 5 replies
  • 140 views
  • 0 likes
  • 3 in conversation