<?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: Bulk load to Greenplum issue using SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Bulk-load-to-Greenplum-issue-using-SAS/m-p/620450#M182316</link>
    <description>&lt;P&gt;Have your SAS session run with utf encoding also. It is not a good idea to mix encodings in your environment.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2020 09:06:50 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-01-28T09:06:50Z</dc:date>
    <item>
      <title>Bulk load to Greenplum issue using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bulk-load-to-Greenplum-issue-using-SAS/m-p/620430#M182310</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am loading a single record with (special character embedded) to Greenplum using the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;LIBNAME test GREENPLM&amp;nbsp;&amp;nbsp;&amp;nbsp; PRESERVE_COL_NAMES=NO&amp;nbsp; PRESERVE_TAB_NAMES=NO&amp;nbsp; DATABASE=xxx SERVER="xxx"&amp;nbsp; SCHEMA=xxx&amp;nbsp; AUTHDOMAIN="xxx" ;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;data table;&lt;BR /&gt;test='aébcabcabc';&lt;BR /&gt;run;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;proc append base = test.test (BULKLOAD=YES &amp;nbsp; BL_PROTOCOL= "gpfdist"&amp;nbsp; BL_HOST = "&amp;amp;BL_HOST"&amp;nbsp;BL_DELETE_DATAFILE=NO BL_PORT = &amp;amp;BL_PORT )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data = table&amp;nbsp; force ; &lt;BR /&gt;&amp;nbsp;run; &lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;and I hit the error:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;ERROR: [SAS][ODBC Greenplum Wire Protocol driver][Greenplum]ERROR: invalid byte sequence for encoding "UTF8": 0xe97f00&amp;nbsp; (seg20 &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slice1 192.168.99.26:40004 pid=303354)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;the underlying dat file generated contains:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;aé &amp;nbsp;&amp;nbsp; abcabc&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;if directly copy and paste from dat file you get:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;aé&amp;#127;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;if open this dat file from Linux then you will have&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;&lt;FONT style="background-color: #ffffff; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;aé^@^@abcabc&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;1. Encoding in GP is UTF8&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;2. Encoding in SAS session is Latin1&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;3.SAS verions is 9.4 M6 on linux&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I want to know why cause the issue and how to solve it?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks&lt;BR /&gt;Chen Xu&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Jan 2020 05:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bulk-load-to-Greenplum-issue-using-SAS/m-p/620430#M182310</guid>
      <dc:creator>gyambqt</dc:creator>
      <dc:date>2020-01-28T05:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk load to Greenplum issue using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bulk-load-to-Greenplum-issue-using-SAS/m-p/620450#M182316</link>
      <description>&lt;P&gt;Have your SAS session run with utf encoding also. It is not a good idea to mix encodings in your environment.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 09:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bulk-load-to-Greenplum-issue-using-SAS/m-p/620450#M182316</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-28T09:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk load to Greenplum issue using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bulk-load-to-Greenplum-issue-using-SAS/m-p/620702#M182430</link>
      <description>&lt;P&gt;We changed SAS session from Latin1 to UTF8 and still receiving same error message.&lt;/P&gt;
&lt;P&gt;Inrestingly, it worked in our old environment with SAS9.4 M3&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 00:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bulk-load-to-Greenplum-issue-using-SAS/m-p/620702#M182430</guid>
      <dc:creator>gyambqt</dc:creator>
      <dc:date>2020-01-29T00:03:17Z</dc:date>
    </item>
  </channel>
</rss>

