<?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: Equalize hex values with same text in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Equalize-hex-values-with-same-text/m-p/848420#M335431</link>
    <description>Yes, thanks, I want to keep the space between states with two words.</description>
    <pubDate>Wed, 07 Dec 2022 20:44:12 GMT</pubDate>
    <dc:creator>Batman</dc:creator>
    <dc:date>2022-12-07T20:44:12Z</dc:date>
    <item>
      <title>Equalize hex values with same text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Equalize-hex-values-with-same-text/m-p/848415#M335427</link>
      <description>&lt;P&gt;I have two values with same apparent text but different hex values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;State=ALABAMA 414C4142414D4109&lt;BR /&gt;State=ALABAMA 414C4142414D4120&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to equalize the hex values so they can be merged?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 20:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Equalize-hex-values-with-same-text/m-p/848415#M335427</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2022-12-07T20:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Equalize hex values with same text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Equalize-hex-values-with-same-text/m-p/848418#M335429</link>
      <description>&lt;P&gt;If I recall, 09 is the hex code for a tab character.&amp;nbsp; There's a small possibility that I'm wrong about that, but the fix is the same no matter what the different characters contain:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;state = compress(state, '0920'x);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Remove the offending characters, and let SAS pad the values with trailing blanks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will investigate a little further, because you won't want to remove embedded blanks from NEW YORK, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Confirmed that 09 is a tab&lt;/FONT&gt;, so begin there by removing just the tab characters:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;state = compress(state, '09'x);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 20:52:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Equalize-hex-values-with-same-text/m-p/848418#M335429</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-12-07T20:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Equalize hex values with same text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Equalize-hex-values-with-same-text/m-p/848420#M335431</link>
      <description>Yes, thanks, I want to keep the space between states with two words.</description>
      <pubDate>Wed, 07 Dec 2022 20:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Equalize-hex-values-with-same-text/m-p/848420#M335431</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2022-12-07T20:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Equalize hex values with same text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Equalize-hex-values-with-same-text/m-p/848429#M335438</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/9248"&gt;@Batman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x20 is the space character. A text variable has a fixed length in SAS and is padded with space characters, so the value will always end with x20x20x20... up to the variable length. So just compress the TAB character out as suggested by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;, and everything will be fine.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 21:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Equalize-hex-values-with-same-text/m-p/848429#M335438</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2022-12-07T21:38:00Z</dc:date>
    </item>
  </channel>
</rss>

