<?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: Eroor Code: Transcode data from utf16le to wlatin1 issue in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720151#M38205</link>
    <description>If it was a text file ,try option encoding=&lt;BR /&gt;&lt;BR /&gt;filename x 'c:\tem\xx.csv' encoding='utf-16le';</description>
    <pubDate>Thu, 18 Feb 2021 11:23:11 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-02-18T11:23:11Z</dc:date>
    <item>
      <title>Eroor Code: Transcode data from utf16le to wlatin1 issue</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720090#M38196</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I received following error on my SAS program after I executed my program. Does anyone encounter error below and how you solve it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error : Failed to transcode data from utf-16le to wlatin1 encoding because it contained characters which are not supported by your sas session encoding. Please review your encoding=and locale=SAS System options to ensure they can accomodate the data that you want to process.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 02:58:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720090#M38196</guid>
      <dc:creator>SASnewbie2</dc:creator>
      <dc:date>2021-02-18T02:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Eroor Code: Transcode data from utf16le to wlatin1 issue</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720095#M38197</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS Error Code.png" style="width: 488px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54865i31E43F2C00855782/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS Error Code.png" alt="SAS Error Code.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 03:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720095#M38197</guid>
      <dc:creator>SASnewbie2</dc:creator>
      <dc:date>2021-02-18T03:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Eroor Code: Transcode data from utf16le to wlatin1 issue</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720097#M38198</link>
      <description>&lt;P&gt;You could either:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Use the COMPRESS functions to take out all the abnormalities:&lt;/P&gt;
&lt;P&gt;compress(Variable_Name," '0D'x'0A'x",'kw')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Try use the data statement encoding option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want (encoding = 'utf-8');&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 03:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720097#M38198</guid>
      <dc:creator>qoit</dc:creator>
      <dc:date>2021-02-18T03:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error Code: Transcode data from utf16le to wlatin1 issue</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720099#M38199</link>
      <description>&lt;P&gt;Hi Qoit,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your advice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I encountered the error when i run the following coding, which I believe the causes was from the "where" function but there'are too many names and I&amp;nbsp;have no idea what are the&amp;nbsp;&lt;SPAN&gt;abnormalities that causes the error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to filter more than 10,000 name from my dataset. below are part of the filter names&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data work.table1&lt;BR /&gt;set WORK.QUERY_FOR_RESULTS_0000;&lt;BR /&gt;WHERE&lt;BR /&gt;(UPCASE(Name) LIKE '% HOLDING%' or&lt;BR /&gt;UPCASE(Name) LIKE '%ZUTALANT%' or&lt;BR /&gt;UPCASE(Name) LIKE '%ZURIAT W É%' or&lt;BR /&gt;UPCASE(Name) LIKE '%ZURAH VENTURES%' or&lt;BR /&gt;UPCASE(Name) LIKE '%ZURAH PREMIER%' or&lt;BR /&gt;UPCASE(Name) LIKE '%ZURAH PERMAI%' or&lt;BR /&gt;UPCASE(Name LIKE '%ZURAH IMPIAN%' or&lt;BR /&gt;UPCASE(Name) LIKE '%ZURAH ABADI%' );&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 04:43:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720099#M38199</guid>
      <dc:creator>SASnewbie2</dc:creator>
      <dc:date>2021-02-18T04:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error Code: Transcode data from utf16le to wlatin1 issue</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720100#M38200</link>
      <description>Are you able to use the compress function to filter out unnecessary characters and then use the WHERE clause?&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;format name_ $1000. (rename=(name = name_));&lt;BR /&gt;name = compress(name_," '0D'x'0A'x",'kw');&lt;BR /&gt;drop name_;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;And now run your DATA Step.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Feb 2021 04:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720100#M38200</guid>
      <dc:creator>qoit</dc:creator>
      <dc:date>2021-02-18T04:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Eroor Code: Transcode data from utf16le to wlatin1 issue</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720115#M38201</link>
      <description>&lt;P&gt;Imho this is not a data-problem, but caused by chars in your program that are not compatible with the encoding of the sas session.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 06:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720115#M38201</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-02-18T06:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Eroor Code: Transcode data from utf16le to wlatin1 issue</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720151#M38205</link>
      <description>If it was a text file ,try option encoding=&lt;BR /&gt;&lt;BR /&gt;filename x 'c:\tem\xx.csv' encoding='utf-16le';</description>
      <pubDate>Thu, 18 Feb 2021 11:23:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/720151#M38205</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-02-18T11:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Eroor Code: Transcode data from utf16le to wlatin1 issue</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/723574#M38292</link>
      <description>&lt;P&gt;If possible copy your code to&amp;nbsp; notepad and then copy back to SAS Eg in a new program window and try&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 19:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/723574#M38292</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-03-04T19:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Eroor Code: Transcode data from utf16le to wlatin1 issue</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/723580#M38294</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200077"&gt;@SASnewbie2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I received following error on my SAS program after I executed my program. Does anyone encounter error below and how you solve it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error : Failed to transcode data from utf-16le to wlatin1 encoding because it contained characters which are not supported by your sas session encoding. Please review your encoding=and locale=SAS System options to ensure they can accomodate the data that you want to process.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you want to work with that data you need to run SAS in a session that is using a non-single byte encodings.&amp;nbsp; With only a single byte encoding WLATIN1 there are only 256 possible characters that can be represented and the one it is complaining about is not one of them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you running the program now?&amp;nbsp; Are you running from a command line?&amp;nbsp; Clicking on something?&amp;nbsp; Using SAS/Studio or Enterprise Guide or other user interface that allows you to run SAS code.&amp;nbsp; Check with your local SAS support about how to run SAS with unicode support in your environment.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 19:23:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Eroor-Code-Transcode-data-from-utf16le-to-wlatin1-issue/m-p/723580#M38294</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-03-04T19:23:37Z</dc:date>
    </item>
  </channel>
</rss>

