<?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: Importing data with special characters with SAS 9.1.3 with dbms = xls in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-data-with-special-characters-with-SAS-9-1-3-with-dbms/m-p/295138#M61644</link>
    <description>&lt;P&gt;Looks like you have a discrepancy between the session encoding of SAS and the encoding of the Excel file (most probably UTF-8).&lt;/P&gt;
&lt;P&gt;Either you need to tinker around with the SAS session encoding, or you could correct those characters by using the translate() function.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2016 13:13:58 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-08-30T13:13:58Z</dc:date>
    <item>
      <title>Importing data with special characters with SAS 9.1.3 with dbms = xls</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-data-with-special-characters-with-SAS-9-1-3-with-dbms/m-p/295121#M61638</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing problem while importing excel file data with special characters. I am working with SAS 9.1.3 Unix platform and using proc import with dbms = xls statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile = "patient_data.xls" out = lot_file dbms = xls replace;&lt;BR /&gt;getnames = no;&lt;BR /&gt;mixed=yes;&lt;BR /&gt;sheet = "lot";;&lt;BR /&gt;textsize = 32767;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;manjan&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 12:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-data-with-special-characters-with-SAS-9-1-3-with-dbms/m-p/295121#M61638</guid>
      <dc:creator>manjan</dc:creator>
      <dc:date>2016-08-30T12:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data with special characters with SAS 9.1.3 with dbms = xls</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-data-with-special-characters-with-SAS-9-1-3-with-dbms/m-p/295133#M61641</link>
      <description>&lt;P&gt;And what IS your problem?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 12:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-data-with-special-characters-with-SAS-9-1-3-with-dbms/m-p/295133#M61641</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-30T12:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data with special characters with SAS 9.1.3 with dbms = xls</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-data-with-special-characters-with-SAS-9-1-3-with-dbms/m-p/295136#M61643</link>
      <description>&lt;P&gt;hi KurtBremser,&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is special characters in the data are not imported correctly.&lt;/P&gt;&lt;P&gt;For example: &amp;nbsp;The excel file has data:&lt;/P&gt;&lt;P&gt;"Analysis of &amp;nbsp;Number (%) of Subjects Reporting Ctrough &amp;gt;20 μg/mL &amp;nbsp;at Cycle 5 (Pre dose Cycle 6 ) - Per Protocol Population".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But after importing the μ is replaced with some ¼ .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see attached screen shot of the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manjan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 13:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-data-with-special-characters-with-SAS-9-1-3-with-dbms/m-p/295136#M61643</guid>
      <dc:creator>manjan</dc:creator>
      <dc:date>2016-08-30T13:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data with special characters with SAS 9.1.3 with dbms = xls</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-data-with-special-characters-with-SAS-9-1-3-with-dbms/m-p/295138#M61644</link>
      <description>&lt;P&gt;Looks like you have a discrepancy between the session encoding of SAS and the encoding of the Excel file (most probably UTF-8).&lt;/P&gt;
&lt;P&gt;Either you need to tinker around with the SAS session encoding, or you could correct those characters by using the translate() function.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 13:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-data-with-special-characters-with-SAS-9-1-3-with-dbms/m-p/295138#M61644</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-30T13:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data with special characters with SAS 9.1.3 with dbms = xls</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-data-with-special-characters-with-SAS-9-1-3-with-dbms/m-p/295475#M61745</link>
      <description>&lt;P&gt;hi KurtBremser,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your quick response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My SAS sesson encoding is WLATIN1 and i cant use translate as this code should be working dynamically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also i see one article&lt;/P&gt;&lt;P&gt;"The Impact of Change from wlatin1 to UTF-8 Encoding in SAS Environment"&amp;nbsp;suggesting that&lt;/P&gt;&lt;P&gt;"DBMS=XLS does not support the multiple-byte characters! Thus, you cannot create&lt;BR /&gt;(or import) via PROC EXPORT/PROC IMPORT a .XLS file with characters like μ in UTF-8 encoding SAS&lt;BR /&gt;environment.".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is their a way to import XLS files with special characters with SAS 9.1.3 on unix environment ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;manjan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 12:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-data-with-special-characters-with-SAS-9-1-3-with-dbms/m-p/295475#M61745</guid>
      <dc:creator>manjan</dc:creator>
      <dc:date>2016-08-31T12:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data with special characters with SAS 9.1.3 with dbms = xls</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-data-with-special-characters-with-SAS-9-1-3-with-dbms/m-p/295484#M61752</link>
      <description>&lt;P&gt;I handled a similar problem (mainframe ebcdic data with german codepage to UNIX(AIX) with en-US) by creating a macro that contains the translate function for all the German "Umlauts" and applying that to all strings read from the mainframe. After that, a single change to the macro will have an impact in all programs using it, making maintenance quite easy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since SAS obviously does not support UTF in the dbms=xls in proc import 8as per your quoted article), I suggest to switch from xls to a more sensible file format. Use CSV or another text-based file format for transfer, and it is that much easier to deal with codepage and multibyte character problems.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 12:48:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-data-with-special-characters-with-SAS-9-1-3-with-dbms/m-p/295484#M61752</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-31T12:48:04Z</dc:date>
    </item>
  </channel>
</rss>

