<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connect SAS to a amazon RDS mariadb in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Connect-SAS-to-a-amazon-RDS-mariadb/m-p/646939#M24082</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/305638"&gt;@edison83&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS can connect to different databases using access engines native to that database or generic ones like ODBC and JDBC. First of all you should check if your site has these licensed or not. In order to check the license at your site run the following command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc setinit; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Once you are sure that the required license i.e. SAS/Access to MySQL for MariaDB or ODBC (as in generic) is installed and with the details i.e. host/port/id/pass already shared, you can write a libname statement to make a connection to the database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS/Access to MySQL supports following databases and versions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Support for MySQL
Starting with SAS 9.4M4 SAS/ACCESS Interface to MySQL supports the following:

Amazon RDS Aurora (MySQL engine version 5.6 or later)
Amazon RDS MariaDB (engine version 10.1 or later)
Amazon RDS MySQL (engine version 5.6 or later)
Azure Database for MySQL (engine version 5.6 or later)
Google Cloud Platform Cloud SQL MySQL (engine version 5.6 or later)
MariaDB 10.1 or later
MemSQL 6.0 or later&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;source:&amp;nbsp;&lt;A href="https://support.sas.com/en/documentation/third-party-software-reference/9-4/support-for-database.html#mySql" target="_blank"&gt;https://support.sas.com/en/documentation/third-party-software-reference/9-4/support-for-database.html#mySql&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example of libname statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MySQL LIBNAME Statement Example
In the following example, the libref MYSQLLIB uses SAS/ACCESS Interface to MySQL to connect to a MySQL database. The SAS/ACCESS connection options are USER=, PASSWORD=, DATABASE=, SERVER=, and PORT=.

libname mysqllib mysql user=myusr1 password=mypwd1 database=mysqldb
server=mysrv1 port=9876;

proc print data=mysqllib.employees;
   where dept='CSR010';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Read more about the different options and syntax at this link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n1lyg1d0crcejin1v7zaeteeniuu.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p0ed8b3z2755jkn1001miu4u0r2u"&gt;https://go.documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n1lyg1d0crcejin1v7zaeteeniuu.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p0ed8b3z2755jkn1001miu4u0r2u&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 02:52:56 GMT</pubDate>
    <dc:creator>AnandVyas</dc:creator>
    <dc:date>2020-05-12T02:52:56Z</dc:date>
    <item>
      <title>Connect SAS to a amazon RDS mariadb</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Connect-SAS-to-a-amazon-RDS-mariadb/m-p/646883#M24081</link>
      <description>&lt;P&gt;Hello guys, i am sorry again for my dumb question!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pretty naive in SAS, and now i have a task that might sounds simple for you guys, however it seems an"UFO" for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will start to work with some company data and they sent me a database instance from their AWS database for me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They sent me the Host/IP of the database, user and password&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don`t even know where to start and how to connect with SAS...I heard something about MySQL, odbc, but those terms sounds like UFO for me hahaha&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways, just wanted your suggestions on where to get started&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do i need to first, do i have to create a database within SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks guys&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 20:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Connect-SAS-to-a-amazon-RDS-mariadb/m-p/646883#M24081</guid>
      <dc:creator>edison83</dc:creator>
      <dc:date>2020-05-11T20:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Connect SAS to a amazon RDS mariadb</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Connect-SAS-to-a-amazon-RDS-mariadb/m-p/646939#M24082</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/305638"&gt;@edison83&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS can connect to different databases using access engines native to that database or generic ones like ODBC and JDBC. First of all you should check if your site has these licensed or not. In order to check the license at your site run the following command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc setinit; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Once you are sure that the required license i.e. SAS/Access to MySQL for MariaDB or ODBC (as in generic) is installed and with the details i.e. host/port/id/pass already shared, you can write a libname statement to make a connection to the database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS/Access to MySQL supports following databases and versions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Support for MySQL
Starting with SAS 9.4M4 SAS/ACCESS Interface to MySQL supports the following:

Amazon RDS Aurora (MySQL engine version 5.6 or later)
Amazon RDS MariaDB (engine version 10.1 or later)
Amazon RDS MySQL (engine version 5.6 or later)
Azure Database for MySQL (engine version 5.6 or later)
Google Cloud Platform Cloud SQL MySQL (engine version 5.6 or later)
MariaDB 10.1 or later
MemSQL 6.0 or later&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;source:&amp;nbsp;&lt;A href="https://support.sas.com/en/documentation/third-party-software-reference/9-4/support-for-database.html#mySql" target="_blank"&gt;https://support.sas.com/en/documentation/third-party-software-reference/9-4/support-for-database.html#mySql&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example of libname statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MySQL LIBNAME Statement Example
In the following example, the libref MYSQLLIB uses SAS/ACCESS Interface to MySQL to connect to a MySQL database. The SAS/ACCESS connection options are USER=, PASSWORD=, DATABASE=, SERVER=, and PORT=.

libname mysqllib mysql user=myusr1 password=mypwd1 database=mysqldb
server=mysrv1 port=9876;

proc print data=mysqllib.employees;
   where dept='CSR010';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Read more about the different options and syntax at this link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n1lyg1d0crcejin1v7zaeteeniuu.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p0ed8b3z2755jkn1001miu4u0r2u"&gt;https://go.documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n1lyg1d0crcejin1v7zaeteeniuu.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p0ed8b3z2755jkn1001miu4u0r2u&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 02:52:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Connect-SAS-to-a-amazon-RDS-mariadb/m-p/646939#M24082</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2020-05-12T02:52:56Z</dc:date>
    </item>
  </channel>
</rss>

