<?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: Hashtable Question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Hashtable-Question/m-p/228080#M41161</link>
    <description>&lt;P&gt;I would&amp;nbsp;check to see if that value of "BR" is actually " BR" with a not very noticeable leading space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2015 16:50:05 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-10-01T16:50:05Z</dc:date>
    <item>
      <title>Hashtable Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hashtable-Question/m-p/228008#M41135</link>
      <description>&lt;P&gt;I have the following code which replaces country codes from a country code dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro replace(file,country);&lt;BR /&gt;data &amp;amp;file.;&lt;BR /&gt;if _n_=1 then do;&lt;BR /&gt;if 0 then set country_codes;&lt;BR /&gt;declare hash h1 (dataset:'country_codes'); &lt;BR /&gt; rc=h1.definekey('iso_code');&lt;BR /&gt; rc=h1.definedata('country'); &lt;BR /&gt; rc=h1.definedone();&lt;BR /&gt;end;&lt;BR /&gt;call missing (of _all_);&lt;BR /&gt;set &amp;amp;file.;&lt;BR /&gt;rc=h1.find(key:&amp;amp;country.);&lt;BR /&gt;drop rc ISO_Code;&lt;BR /&gt;if missing(Country) then Country=&amp;amp;country.; &lt;BR /&gt;Country=upcase(Country);&lt;BR /&gt;run;&lt;BR /&gt;%mend replace;&lt;BR /&gt;%replace(contacts_all,country);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above code replaces all instances of 'BR' to Brazil but in the final output, one observation&amp;nbsp;of BR still remains. What could be causing this? Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 07:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hashtable-Question/m-p/228008#M41135</guid>
      <dc:creator>sasmaverick</dc:creator>
      <dc:date>2015-10-01T07:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hashtable Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hashtable-Question/m-p/228047#M41145</link>
      <description>&lt;P&gt;It is difficult to visualize your probelm.. The answer will be quick if you make us to see your problem in terms of some input data set(even mock will do) and the desired output data set.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 14:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hashtable-Question/m-p/228047#M41145</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2015-10-01T14:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hashtable Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hashtable-Question/m-p/228080#M41161</link>
      <description>&lt;P&gt;I would&amp;nbsp;check to see if that value of "BR" is actually " BR" with a not very noticeable leading space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 16:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hashtable-Question/m-p/228080#M41161</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-10-01T16:50:05Z</dc:date>
    </item>
  </channel>
</rss>

