<?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 Transcoding  SAS datasets from  Unicode utf-8 to non-Unicode encoding in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-SAS-datasets-from-Unicode-utf-8-to-non-Unicode/m-p/24494#M4160</link>
    <description>Dear SAS Experts!!!&lt;BR /&gt;
&lt;BR /&gt;
We are getting SAS datasets with Unicode UTF-8 encoding from another country. &lt;BR /&gt;
Our English SAS 9.2 does not support Unicode.  A simple data step that reads an utf-8 dataset generates the following log error message:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;NOTE:&lt;/B&gt; Data file UTF8.HE.DATA is in a format that is native to another host, or the file encoding does not match the   session encoding. Cross Environment Data Access will be used, which might require additional CPU resources and   might reduce performance.&lt;BR /&gt;
&lt;B&gt;ERROR:&lt;/B&gt; Some character data was lost during transcoding in the dataset UTF8.HE. Either the data contains characters that are not representable in the new encoding or truncation occurred during transcoding.&lt;BR /&gt;
&lt;B&gt;NOTE:&lt;/B&gt; The DATA step has been abnormally terminated.&lt;BR /&gt;
&lt;BR /&gt;
An attempt to use NLS options as shown below does not help and the same error is generated.&lt;BR /&gt;
&lt;BR /&gt;
libname	utf8 cvp	"..\utf8" access=readonly cvpbytes=2;&lt;BR /&gt;
libname	win		"..\win" outencoding=wlatin1;&lt;BR /&gt;
 &lt;BR /&gt;
 data win.outds ( encoding='wlatin1');&lt;BR /&gt;
 set utf8.inds ( encoding='utf-8');&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
Does anybody know how to process Unicode UTF-8 datasets on SAS that does not support Unicode?  Is it really possible or should transcoding from UTF-8 to non-Unicode be done only using SAS with Unicode support?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thank you for advance.</description>
    <pubDate>Wed, 02 Dec 2009 16:04:30 GMT</pubDate>
    <dc:creator>IJU</dc:creator>
    <dc:date>2009-12-02T16:04:30Z</dc:date>
    <item>
      <title>Transcoding  SAS datasets from  Unicode utf-8 to non-Unicode encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-SAS-datasets-from-Unicode-utf-8-to-non-Unicode/m-p/24494#M4160</link>
      <description>Dear SAS Experts!!!&lt;BR /&gt;
&lt;BR /&gt;
We are getting SAS datasets with Unicode UTF-8 encoding from another country. &lt;BR /&gt;
Our English SAS 9.2 does not support Unicode.  A simple data step that reads an utf-8 dataset generates the following log error message:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;NOTE:&lt;/B&gt; Data file UTF8.HE.DATA is in a format that is native to another host, or the file encoding does not match the   session encoding. Cross Environment Data Access will be used, which might require additional CPU resources and   might reduce performance.&lt;BR /&gt;
&lt;B&gt;ERROR:&lt;/B&gt; Some character data was lost during transcoding in the dataset UTF8.HE. Either the data contains characters that are not representable in the new encoding or truncation occurred during transcoding.&lt;BR /&gt;
&lt;B&gt;NOTE:&lt;/B&gt; The DATA step has been abnormally terminated.&lt;BR /&gt;
&lt;BR /&gt;
An attempt to use NLS options as shown below does not help and the same error is generated.&lt;BR /&gt;
&lt;BR /&gt;
libname	utf8 cvp	"..\utf8" access=readonly cvpbytes=2;&lt;BR /&gt;
libname	win		"..\win" outencoding=wlatin1;&lt;BR /&gt;
 &lt;BR /&gt;
 data win.outds ( encoding='wlatin1');&lt;BR /&gt;
 set utf8.inds ( encoding='utf-8');&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
Does anybody know how to process Unicode UTF-8 datasets on SAS that does not support Unicode?  Is it really possible or should transcoding from UTF-8 to non-Unicode be done only using SAS with Unicode support?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thank you for advance.</description>
      <pubDate>Wed, 02 Dec 2009 16:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transcoding-SAS-datasets-from-Unicode-utf-8-to-non-Unicode/m-p/24494#M4160</guid>
      <dc:creator>IJU</dc:creator>
      <dc:date>2009-12-02T16:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Transcoding  SAS datasets from  Unicode utf-8 to non-Unicode encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-SAS-datasets-from-Unicode-utf-8-to-non-Unicode/m-p/24495#M4161</link>
      <description>Have you read this SAS support website document (the ENCODING= option is mentioned specifically)?&lt;BR /&gt;
&lt;BR /&gt;
Processing Multilingual Data with the SAS 9.2 Unicode Server&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/92unicodesrvr.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/92unicodesrvr.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 02 Dec 2009 16:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transcoding-SAS-datasets-from-Unicode-utf-8-to-non-Unicode/m-p/24495#M4161</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-12-02T16:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Transcoding  SAS datasets from  Unicode utf-8 to non-Unicode encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-SAS-datasets-from-Unicode-utf-8-to-non-Unicode/m-p/24496#M4162</link>
      <description>Hi Scott,&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much for your response. &lt;BR /&gt;
&lt;BR /&gt;
The SAS support document refers to processing of multilingual data and conversion from &lt;BR /&gt;
non-UTF-8 to UTF-8 encoding. It does say that UTF-8 data can be modified only in a UTF-8 session.  Our data is English with UTF-8 encoding. I am looking for a way of converting SAS datasets with UTF-8 encoding to a non-UTF-8 encoding, i.e. wlatin1. The converted datasets should have same features as datasets created in a non-UTF-8 session.  Apparently it can be done only in a UTF-8 session.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
IJU</description>
      <pubDate>Thu, 03 Dec 2009 14:33:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transcoding-SAS-datasets-from-Unicode-utf-8-to-non-Unicode/m-p/24496#M4162</guid>
      <dc:creator>IJU</dc:creator>
      <dc:date>2009-12-03T14:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Transcoding  SAS datasets from  Unicode utf-8 to non-Unicode encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-SAS-datasets-from-Unicode-utf-8-to-non-Unicode/m-p/24497#M4163</link>
      <description>Have you reviewed the SAS National Language Support (NLS): Reference Guide?  There are INFORMATs documented for this type of data conversion.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 03 Dec 2009 15:12:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transcoding-SAS-datasets-from-Unicode-utf-8-to-non-Unicode/m-p/24497#M4163</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-12-03T15:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Transcoding  SAS datasets from  Unicode utf-8 to non-Unicode encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-SAS-datasets-from-Unicode-utf-8-to-non-Unicode/m-p/607140#M176406</link>
      <description>&lt;P&gt;KPROPDATA and KCVT can transcode the character data from one encoding to another. If you set the INENCODING to BINARY on your LIBNAME statement to prevent SAS from transcoding the data set. Then convert the character columns using one of the functions mentioned above.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KPROPDATA gives you a little more help by allowing you to specify how to handle characters that are not supported in your SAS session encoding.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 23:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transcoding-SAS-datasets-from-Unicode-utf-8-to-non-Unicode/m-p/607140#M176406</guid>
      <dc:creator>ehbales</dc:creator>
      <dc:date>2019-11-25T23:13:00Z</dc:date>
    </item>
  </channel>
</rss>

