<?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: How to handle DBCS Character in datasets ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-handle-DBCS-Character-in-datasets/m-p/134240#M27257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza. I did stripped those characters. But we came to know that these are required and we have to convert them back to their actual values. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 May 2013 17:22:11 GMT</pubDate>
    <dc:creator>anandbillava</dc:creator>
    <dc:date>2013-05-15T17:22:11Z</dc:date>
    <item>
      <title>How to handle DBCS Character in datasets ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-handle-DBCS-Character-in-datasets/m-p/134238#M27255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear forum experts&lt;/P&gt;&lt;P&gt;In our data we are getting unicode characters of some DBCS characters. for e.g the symbol for mu is converted as &amp;amp;#956; . We are having lot of such characters in our RDE data.&lt;/P&gt;&lt;P&gt;We are not sure how we should handle these texts. These are important characters and we do not know how to process them.&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the screenshot also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11591iDAC1BAE7B5F7334D/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="screenshot.jpg" title="screenshot.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 15:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-handle-DBCS-Character-in-datasets/m-p/134238#M27255</guid>
      <dc:creator>anandbillava</dc:creator>
      <dc:date>2013-05-15T15:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle DBCS Character in datasets ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-handle-DBCS-Character-in-datasets/m-p/134239#M27256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you want them handled? Do you want them stripped out? Read in and displayed as mu? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 15:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-handle-DBCS-Character-in-datasets/m-p/134239#M27256</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-05-15T15:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle DBCS Character in datasets ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-handle-DBCS-Character-in-datasets/m-p/134240#M27257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza. I did stripped those characters. But we came to know that these are required and we have to convert them back to their actual values. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 17:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-handle-DBCS-Character-in-datasets/m-p/134240#M27257</guid>
      <dc:creator>anandbillava</dc:creator>
      <dc:date>2013-05-15T17:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle DBCS Character in datasets ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-handle-DBCS-Character-in-datasets/m-p/134241#M27258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I'm a little confused by the representation of the unicode characters that you're seeing, but I'll offer my 2 cents. The format "&amp;amp;#n;" is, in the unicode world, called the "numeric character representation" or NCR, where "n" is a number, and the other characters are literal. In your screenshot, I'm afraid I don't know what the leading "/" or the trailing "l" are for. In any event, you should be able to&amp;nbsp; strip out those characters, and then convert what's left with the SAS unicode() function. Here's an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt; input wbc wbcoth_uni $;&lt;/P&gt;&lt;P&gt; wbcoth = unicode(wbcoth_uni,'ncr');&lt;/P&gt;&lt;P&gt; datalines4;&lt;/P&gt;&lt;P&gt; 3690 &amp;amp;#956;&lt;/P&gt;&lt;P&gt;;;;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I open the table "one" in ViewTable, I see a mu in the wbcoth column. Please note that you do need to be running the &lt;STRONG&gt;unicode&lt;/STRONG&gt; version of SAS, which may not be the default at your institution. On my Windows system, it's in the start menu--&amp;gt;All Programs--&amp;gt;SAS--&amp;gt;Additional Languages--&amp;gt;SAS 9.3 (unicode support).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 20:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-handle-DBCS-Character-in-datasets/m-p/134241#M27258</guid>
      <dc:creator>KarlK</dc:creator>
      <dc:date>2013-05-15T20:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle DBCS Character in datasets ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-handle-DBCS-Character-in-datasets/m-p/134242#M27259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check some options :&lt;/P&gt;&lt;P&gt;infile x&amp;nbsp; encoding=dbcs recft=&amp;nbsp;&amp;nbsp;&amp;nbsp; termstr=&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 03:00:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-handle-DBCS-Character-in-datasets/m-p/134242#M27259</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-05-16T03:00:54Z</dc:date>
    </item>
  </channel>
</rss>

