Hi All,
I am trying to connect SAS to an Oracle data base without success (my SAS has ODBC). Is there anything else that I need to do in SAS?. Any help provided will be greatly appreciated.
I am using the following code:
PROC SQL NOPRINT;
CONNECT TO ODBC AS MYDB (DSN="xxxxx" USER="xxxxx" PASSWORD="xxxxx AUTOCOMMIT=YES);
CREATE TABLE THOSEPESKYITEMS AS
SELECT * FROM CONNECTION TO MYDB (SELECT * FROM MYIDS);
QUIT;
Best regards,
do you have an ODBC connection setup for the server in Windows on the PC?
Thanks for your reply.
Is there any information with the steps required to do that?
Best regards,
Francisco
It would help if you posted your SAS log so we can see the error messages. The most likely cause is your Data Source Name - DSN - is not defined or not correctly defined on the computer where you are running SAS. Are you running your SAS program on your own PC or on a remote server?
Thanks for your reply.
I am running SAS in my own computer.
This is the error mesage:
1 PROC SQL NOPRINT;
2 CONNECT TO ODBC AS MYDB (DSN="tcerdos" USER="PRODUCCION" PASSWORD=XXXXXX AUTOCOMMIT=YES);
ERROR: CLI error trying to establish connection: [Microsoft][Administrador de controladores ODBC]
La arquitectura del DSN especificado no coincide entre el controlador y la aplicación.
3 CREATE TABLE THOSEPESKYITEMS AS
4 SELECT * FROM CONNECTION TO MYDB (SELECT * FROM MYIDS);
ERROR: The MYDB engine cannot be found.
ERROR: A Connection to the MYDB DBMS is not currently supported, or is not installed at your site.
5 QUIT;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
real time 0.13 seconds
cpu time 0.00 seconds
Your help will be greatly appreciated,
Best regards,
Francisco
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.