SAS and MySQL connection method

Source: Internet
Author: User
Tags dsn
August 11, 2012 SAS 9.1.3 version with MySQL connection test, can connect with database
1 direct connectivity via ODBC pass through
Connect to ODBC
CREATE TABLE (or view)

2 through Access
Access connects to MySQL using the access connection ODBC,ODBC, even if you do not have permission to use MySQL directly. It also enables SAS to interact with MySQL.

Script examples
Libname mydblib ODBC noprompt= "UID=TESTUSER;PWD=TESTPASS;DSN=SQLSERVR;" Proc Print data=mydblib.customers; Run

Or
Libname mydblib ODBC dsn=as400 uid=testuser
Pwd=testpass;

Proc Print data=mydblib.customers;
where state= ' CA ';
Run

After the Mydblib is established, it can be performed in SAS and the actual modified data is in MySQL.

SAS and MySQL connection method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.