<?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: insert from sas into amazon rds mysql not working even though log shows insert in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/insert-from-sas-into-amazon-rds-mysql-not-working-even-though/m-p/294757#M61520</link>
    <description>&lt;P&gt;Try the folowing optins, the databse might return something more to you...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i sastrace=',,,d' sastraceloc=saslog nostsuffix;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2016 11:19:51 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-08-29T11:19:51Z</dc:date>
    <item>
      <title>insert from sas into amazon rds mysql not working even though log shows insert</title>
      <link>https://communities.sas.com/t5/SAS-Programming/insert-from-sas-into-amazon-rds-mysql-not-working-even-though/m-p/294754#M61518</link>
      <description>&lt;P&gt;I&amp;nbsp;am trying to insert records from SAS table into Amazon RDS using ODBC libname statement. My log shows that records have been inserted , however the select query returns null. I tried commit after insert, but it is still not working.&lt;/P&gt;&lt;P&gt;When i try inserting from sql prompt it works.&lt;/P&gt;&lt;P&gt;I am trying a normal proc sql statement .&lt;/P&gt;&lt;P&gt;Code :-&lt;/P&gt;&lt;PRE&gt;libname test1 odbc user=XX password="XX" datasrc="Amazon RDS ODBC DSN"    autocommit=yes dbcommit =1000;
proc sql;
insert into test1.tmp_list (cust_iden, process_id) values (1,10);
select * from test1.tmp_list;
quit;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;*NOTE: Libref TEST1 was successfully assigned as follows:  
      Engine:        ODBC  
      Physical Name: Amazon RDS ODBC DSN  
3          proc sql;  
4          insert into test1.tmp_list (cust_iden, process_id) values (1,10);  
NOTE: 1 row was inserted into TEST1.tmp_list.  
5          select * from test1.tmp_list;  
NOTE: No rows were selected.  
6  
7          quit;  
NOTE: PROCEDURE SQL used (Total process time):  
      real time           0.09 seconds  
      cpu time            0.05 seconds*  &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no error displayed in the log which indicates a rollback. Where is my record disappearing? I want to be able load a list of cust_iden's from a sas dataset into this temp tables.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;am getting the same result even when the select query is in a different proc. I also logged into the database server, but none of the records have been added to the table&lt;/P&gt;&lt;P&gt;Any pointers would be helpful. Thanks.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/insert-from-sas-into-amazon-rds-mysql-not-working-even-though/m-p/294754#M61518</guid>
      <dc:creator>NVK</dc:creator>
      <dc:date>2016-08-29T11:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: insert from sas into amazon rds mysql not working even though log shows insert</title>
      <link>https://communities.sas.com/t5/SAS-Programming/insert-from-sas-into-amazon-rds-mysql-not-working-even-though/m-p/294757#M61520</link>
      <description>&lt;P&gt;Try the folowing optins, the databse might return something more to you...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i sastrace=',,,d' sastraceloc=saslog nostsuffix;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/insert-from-sas-into-amazon-rds-mysql-not-working-even-though/m-p/294757#M61520</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-08-29T11:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: insert from sas into amazon rds mysql not working even though log shows insert</title>
      <link>https://communities.sas.com/t5/SAS-Programming/insert-from-sas-into-amazon-rds-mysql-not-working-even-though/m-p/294767#M61524</link>
      <description>&lt;PRE&gt;
Maybe you need reconnect to libname .



libname test1 odbc user=XX password="XX" datasrc="Amazon RDS ODBC DSN"    autocommit=yes dbcommit =1000;
proc sql;
insert into test1.tmp_list (cust_iden, process_id) values (1,10);
quit;
libname test1 clear;

libname test1 ......
proc sql;
select * from test1.tmp_list;
quit;
&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/insert-from-sas-into-amazon-rds-mysql-not-working-even-though/m-p/294767#M61524</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-29T11:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: insert from sas into amazon rds mysql not working even though log shows insert</title>
      <link>https://communities.sas.com/t5/SAS-Programming/insert-from-sas-into-amazon-rds-mysql-not-working-even-though/m-p/295119#M61637</link>
      <description>&lt;P&gt;The libname clear command is&amp;nbsp;not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am checking with sastrace option to see what is happening at database end. Will put in&amp;nbsp;the findings soon.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 12:07:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/insert-from-sas-into-amazon-rds-mysql-not-working-even-though/m-p/295119#M61637</guid>
      <dc:creator>NVK</dc:creator>
      <dc:date>2016-08-30T12:07:56Z</dc:date>
    </item>
  </channel>
</rss>

