<?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 How to find hidden character and get rid of it in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-hidden-character-and-get-rid-of-it/m-p/452555#M114242</link>
    <description>&lt;P&gt;I suspect I have hidden character '0A'X, 'M' in the variable.&amp;nbsp; When I sort and put id on this variable, SAS thinks the same value(to me)&amp;nbsp;are different.&amp;nbsp; How to find out and change this hidden characters?&amp;nbsp; The program I run is&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data = meds_new2
 out = meds_new3;
 by All_Managers;
run;
data meds_new4;
set meds_new3;
by All_Managers;
if first.All_Managers then count + 1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and the output I got is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 358px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19707i751C517996325EE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;thank you for your help.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Apr 2018 16:50:45 GMT</pubDate>
    <dc:creator>mhollifi</dc:creator>
    <dc:date>2018-04-09T16:50:45Z</dc:date>
    <item>
      <title>How to find hidden character and get rid of it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-hidden-character-and-get-rid-of-it/m-p/452556#M114238</link>
      <description>&lt;P&gt;I suspect I have hidden character '0A'X, 'M' in the variable.&amp;nbsp; When I sort and put id on this variable, SAS thinks the same value(to me)&amp;nbsp;are different.&amp;nbsp; How to find out and change this hidden characters?&amp;nbsp; The program I run is&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data = meds_new2
 out = meds_new3;
 by All_Managers;
run;
data meds_new4;
set meds_new3;
by All_Managers;
if first.All_Managers then count + 1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and the output I got is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 358px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19707i751C517996325EE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;thank you for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 16:51:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-hidden-character-and-get-rid-of-it/m-p/452556#M114238</guid>
      <dc:creator>mhollifi</dc:creator>
      <dc:date>2018-04-09T16:51:39Z</dc:date>
    </item>
    <item>
      <title>How to find hidden character and get rid of it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-hidden-character-and-get-rid-of-it/m-p/452555#M114242</link>
      <description>&lt;P&gt;I suspect I have hidden character '0A'X, 'M' in the variable.&amp;nbsp; When I sort and put id on this variable, SAS thinks the same value(to me)&amp;nbsp;are different.&amp;nbsp; How to find out and change this hidden characters?&amp;nbsp; The program I run is&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data = meds_new2
 out = meds_new3;
 by All_Managers;
run;
data meds_new4;
set meds_new3;
by All_Managers;
if first.All_Managers then count + 1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and the output I got is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 358px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19707i751C517996325EE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;thank you for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 16:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-hidden-character-and-get-rid-of-it/m-p/452555#M114242</guid>
      <dc:creator>mhollifi</dc:creator>
      <dc:date>2018-04-09T16:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to find hidden character and get rid of it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-hidden-character-and-get-rid-of-it/m-p/452560#M114240</link>
      <description>&lt;P&gt;If you know what the hidden character is, getting rid of it is easy:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;all_managers = compress(all_managers, '0A'x);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't know what the hidden character is you can find it with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data temp;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;all_managers = compress(all_managers, , 'ad');&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;proc freq data=temp;&lt;/P&gt;
&lt;P&gt;tables all_managers;&lt;/P&gt;
&lt;P&gt;format all_managers $hex30.;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 17:04:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-hidden-character-and-get-rid-of-it/m-p/452560#M114240</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-04-09T17:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to find hidden character and get rid of it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-hidden-character-and-get-rid-of-it/m-p/452563#M114243</link>
      <description>In addition to &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;'s suggestion, it's also worth checking the documentation, there's an 'S' modifier in the COMPRESS function to remove all spaces. &lt;BR /&gt;&lt;BR /&gt;s or S	adds space characters (blank, horizontal tab, vertical tab, carriage return, line feed, form feed, and NBSP ('A0'x, or 160 decimal ASCII) to the list of characters.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n0fcshr0ir3h73n1b845c4aq58hz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p1v3kt0k9xvlwjn1gvwne2mwuk6f" target="_blank"&gt;http://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n0fcshr0ir3h73n1b845c4aq58hz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p1v3kt0k9xvlwjn1gvwne2mwuk6f&lt;/A&gt;</description>
      <pubDate>Mon, 09 Apr 2018 17:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-hidden-character-and-get-rid-of-it/m-p/452563#M114243</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-09T17:02:29Z</dc:date>
    </item>
  </channel>
</rss>

