<?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 Append data to MySQL with utf8 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Append-data-to-MySQL-with-utf8/m-p/495760#M130918</link>
    <description>&lt;P&gt;I connect mysql(utf8 encoding) with libname&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname rdm mysql server=.....  dbconinit='set names gbk'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;('set names utf8' fails but 'se names gbk' works when I appends data to MySQL)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I append data to MySQL tables(utf8)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are errors about encoding when appending data.(There are other languages or '&lt;SPAN&gt;€' etc&lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc append base=rdm.wdj data=source.wdj force  force;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;he appending&amp;nbsp; procedure stops whenever there is an error.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;How&amp;nbsp;do I&amp;nbsp;skip the error data and keep appending the next data?&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Sep 2018 16:56:00 GMT</pubDate>
    <dc:creator>SullivanC</dc:creator>
    <dc:date>2018-09-14T16:56:00Z</dc:date>
    <item>
      <title>Append data to MySQL with utf8</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Append-data-to-MySQL-with-utf8/m-p/495760#M130918</link>
      <description>&lt;P&gt;I connect mysql(utf8 encoding) with libname&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname rdm mysql server=.....  dbconinit='set names gbk'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;('set names utf8' fails but 'se names gbk' works when I appends data to MySQL)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I append data to MySQL tables(utf8)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are errors about encoding when appending data.(There are other languages or '&lt;SPAN&gt;€' etc&lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc append base=rdm.wdj data=source.wdj force  force;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;he appending&amp;nbsp; procedure stops whenever there is an error.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;How&amp;nbsp;do I&amp;nbsp;skip the error data and keep appending the next data?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 16:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Append-data-to-MySQL-with-utf8/m-p/495760#M130918</guid>
      <dc:creator>SullivanC</dc:creator>
      <dc:date>2018-09-14T16:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Append data to MySQL with utf8</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Append-data-to-MySQL-with-utf8/m-p/495778#M130929</link>
      <description>&lt;P&gt;Check your SAS Session encoding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=encoding;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also check your dataset encoding,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Check your data set encoding*/
%let dsn=jliang1.group_info;
%let dsid=%sysfunc(open(&amp;amp;dsn,i));
%put &amp;amp;dsn ENCODING is:
%sysfunc(attrc(&amp;amp;dsid,encoding));
/*Or*/
proc contents data=jliang1.group_info;run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What SAS Application are you using, EG or Base SAS? If Base SAS then open SAS UTF-8 application and run the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI.....&lt;A href="http://support.sas.com/kb/51/586.html" target="_blank"&gt;http://support.sas.com/kb/51/586.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 17:43:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Append-data-to-MySQL-with-utf8/m-p/495778#M130929</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-09-14T17:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Append data to MySQL with utf8</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Append-data-to-MySQL-with-utf8/m-p/495894#M130993</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;I use EG to connect to MySQL(UTF8)&lt;/P&gt;
&lt;P&gt;My dataset is euc-cn Simplified Chinese.&lt;/P&gt;
&lt;P&gt;Can I change the&amp;nbsp;dataset from euc-cn to UTF8?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2018 10:51:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Append-data-to-MySQL-with-utf8/m-p/495894#M130993</guid>
      <dc:creator>SullivanC</dc:creator>
      <dc:date>2018-09-15T10:51:01Z</dc:date>
    </item>
  </channel>
</rss>

