<?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: Levenshtein Distance in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/495260#M130670</link>
    <description>&lt;P&gt;love the way to solve problem in hash. Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2018 12:42:12 GMT</pubDate>
    <dc:creator>EC189QRW</dc:creator>
    <dc:date>2018-09-13T12:42:12Z</dc:date>
    <item>
      <title>Levenshtein Distance</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/12454#M1333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H3&gt;Levenshtein Distance&lt;/H3&gt;&lt;H4 style="margin-bottom: 10px; font-size: 11px; vertical-align: baseline; background-color: #ffffff; font-family: 'Lucida Grande', 'Lucida Sans', 'Lucida Sans Unicode', Arial, sans-serif; color: #222222; line-height: 18px; text-align: -webkit-auto;"&gt;Description:&lt;/H4&gt;&lt;P style="margin-bottom: 15px; font-size: 12px; vertical-align: baseline; background-color: #ffffff; line-height: 18px; text-align: justify; color: #222222; font-family: 'Lucida Grande', 'Lucida Sans', 'Lucida Sans Unicode', Arial, sans-serif;"&gt;Two words are friends if they have a Levenshtein distance of 1 (For details see &lt;A href="http://en.wikipedia.org/wiki/Levenshtein_distance"&gt;http://en.wikipedia.org/wiki/Levenshtein_distance&lt;/A&gt;). That is, you can add, remove, or substitute exactly one letter in word X to create word Y. A word’s social network consists of all of its friends, plus all of their friends, and all of their friends’ friends, and so on. Write a program to tell us how big the social network for the word 'hello' is, using this word list attached (input_kevenshtein_dstance[1].txt)&lt;/P&gt;&lt;H4 style="margin-bottom: 10px; font-size: 11px; vertical-align: baseline; background-color: #ffffff; font-family: 'Lucida Grande', 'Lucida Sans', 'Lucida Sans Unicode', Arial, sans-serif; color: #222222; line-height: 18px; text-align: -webkit-auto;"&gt;Input sample:&lt;/H4&gt;&lt;P style="margin-bottom: 15px; font-size: 12px; vertical-align: baseline; background-color: #ffffff; line-height: 18px; text-align: justify; color: #222222; font-family: 'Lucida Grande', 'Lucida Sans', 'Lucida Sans Unicode', Arial, sans-serif;"&gt;Your program should accept as its first argument a string to find the social network of.&amp;nbsp; EX1. time&lt;/P&gt;&lt;H4 style="margin-bottom: 10px; font-size: 11px; vertical-align: baseline; background-color: #ffffff; font-family: 'Lucida Grande', 'Lucida Sans', 'Lucida Sans Unicode', Arial, sans-serif; color: #222222; line-height: 18px; text-align: -webkit-auto;"&gt;Output sample:&lt;/H4&gt;&lt;P style="margin-bottom: 15px; font-size: 12px; vertical-align: baseline; background-color: #ffffff; line-height: 18px; text-align: justify; color: #222222; font-family: 'Lucida Grande', 'Lucida Sans', 'Lucida Sans Unicode', Arial, sans-serif;"&gt;Print out how big the social network for the word 'hello' is. e.g. The social network for the words 'causes' and 'abcde' is 7630 and 7632 respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Below is my solution.&amp;nbsp; I would not consider it to be efficient, it is just my first try, it works but needs rethinking.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;%let input=causes;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;%let win=%sysfunc(lowcase(%sysfunc(compress(&amp;amp;input,,p))));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: black; font-size: 10pt; background-color: black; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; dict;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;infile '/temp/input_levenshtein_distance[1].txt' truncover;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;input dword $32.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: black; font-size: 10pt; background-color: black; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: black; font-size: 10pt; background-color: black; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;length count &lt;STRONG&gt;8&lt;/STRONG&gt; fw word dword $&lt;STRONG&gt;32&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;declare hash d(dataset:'dict');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;d.definekey('dword');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;d.definedata('dword');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;d.definedone();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;declare hiter i1('d');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;declare hash c(ordered:'a');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;c.definekey('count');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;c.definedata('word');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;c.definedone();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;c.add(key:&lt;STRONG&gt;1&lt;/STRONG&gt;,data:"&amp;amp;win");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;declare hiter i2('c');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;declare hash o();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;o.definekey('word');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;o.definedata('word');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;o.definedone();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;o.add(key:"&amp;amp;win",data:"&amp;amp;win");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;i2.first();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;done=&lt;STRONG&gt;0&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;n=&lt;STRONG&gt;1&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;do while(not done);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;fw=word;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;i1.first();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;do while(i1.next()=&lt;STRONG&gt;0&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp; if o.check(key:dword) ne &lt;STRONG&gt;0&lt;/STRONG&gt; then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; do;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if complev(fw,dword)=&lt;STRONG&gt;1&lt;/STRONG&gt; then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n+&lt;STRONG&gt;1&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c.add(key:n,data:dword);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.add(key:dword,data:dword);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;done=i2.next();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background-color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;put "Social network size for &amp;amp;win is:" n comma8.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 10pt; background-color: black; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This challenge reposted from: &lt;STRONG&gt;&lt;A href="http://www.codeeval.com/open_challenges/58/"&gt;http://www.codeeval.com/open_challenges/58/&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 16:28:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/12454#M1333</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2011-12-12T16:28:11Z</dc:date>
    </item>
    <item>
      <title>Levenshtein Distance</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/12455#M1334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is very interesting. Which remind me a Question posted by sas_Form which attracted lots of eyes.&lt;/P&gt;&lt;P&gt;This is very like sas_Form's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BTW. I like the website : &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.codeeval.com/"&gt;https://www.codeeval.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;%let word=causes;

data dic;
infile 'c:\input_levenshtein_distance[1].txt';
input word $40.;
run;
data _null_;
if 0 then set dic;
declare hash ha(hashexp:20,dataset:'dic');
declare hiter hi('ha');
 ha.definekey('word');
 ha.definedata('word');
 ha.definedone();

length _word k $ 40 obs 8;
declare hash _ha(ordered:'Y');
declare hiter _hi('_ha');
 _ha.definekey('obs');
 _ha.definedata('_word');
 _ha.definedone();
 obs=1;_word="&amp;amp;word";_ha.add();

rc=_hi.first(); 
do while(rc=0);
 rcc=hi.first();
 do while(rcc=0);
&amp;nbsp; if complev(word,_word)=1 then do; k=word;obs+1; _ha.add(key:obs,data:word);found=1;end;
&amp;nbsp; rcc=hi.next();
&amp;nbsp; if found then do;rx=ha.remove(key:k);found=0;end;
 end;
rc=_hi.next();
end;
putlog "The social network for the words &amp;amp;word is "&amp;nbsp; obs ;
stop;
run;

/*&amp;nbsp; 2168&amp;nbsp; */


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 05:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/12455#M1334</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-12-13T05:38:21Z</dc:date>
    </item>
    <item>
      <title>Levenshtein Distance</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/12456#M1335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't register at &lt;A class="jive-link-external-small" href="https://www.codeeval.com/"&gt;https://www.codeeval.com/&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;It is very upset. :smileyshocked:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 06:54:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/12456#M1335</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-12-13T06:54:29Z</dc:date>
    </item>
    <item>
      <title>Levenshtein Distance</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/12457#M1336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes, it is technically a job posting site for companies in the U.S. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp; One thing I do not understand is that whenever I try to use the remove() method on a hash object which I have designated a iterator object it does not work.&amp;nbsp; I need to double check what my issue was.&amp;nbsp; Maybe I was trying to call remove on the iterator object itself and not the originating hash?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 15:22:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/12457#M1336</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2011-12-13T15:22:57Z</dc:date>
    </item>
    <item>
      <title>Levenshtein Distance</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/12458#M1337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hash iteration Object has such remove method. Only Hash Table Object itself has.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't remove the current item in Hash Table, You need hi.next() to make pointer to move to next item ,then delete it. Of course . Don't forget use return code:&amp;nbsp; rc=ha.remove();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 05:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/12458#M1337</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-12-14T05:22:17Z</dc:date>
    </item>
    <item>
      <title>Levenshtein Distance</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/12459#M1338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I looked back at my code, I was accidently trying to call remove method on hiter object, not the originating hash object.&amp;nbsp; Dumb mistake to not have caught.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 17:14:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/12459#M1338</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2011-12-14T17:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Levenshtein Distance</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/495260#M130670</link>
      <description>&lt;P&gt;love the way to solve problem in hash. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 12:42:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Levenshtein-Distance/m-p/495260#M130670</guid>
      <dc:creator>EC189QRW</dc:creator>
      <dc:date>2018-09-13T12:42:12Z</dc:date>
    </item>
  </channel>
</rss>

