<?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: Help on the code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-on-Levenshtein-function/m-p/672354#M202054</link>
    <description>&lt;P&gt;&lt;BR /&gt;Thanks, I have tried both functions and not working.&lt;/P&gt;&lt;P&gt;COMPGED(stringa, stringb) AS VALUE1,&lt;/P&gt;&lt;P&gt;COMPLEV(stringa, stringb) AS VALUE2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Prepare error: Error while compiling statement: FAILED: SemanticException [Error 10011]: Line 1:53 Invalid&lt;/P&gt;&lt;P&gt;function 'COMPGED'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Prepare error: Error while compiling statement: FAILED: SemanticException [Error 10011]: Line 1:53 Invalid&lt;/P&gt;&lt;P&gt;function 'COMPLEV'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be its not working in Hive EAP&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jul 2020 23:45:40 GMT</pubDate>
    <dc:creator>Kalai2008</dc:creator>
    <dc:date>2020-07-25T23:45:40Z</dc:date>
    <item>
      <title>Help on Levenshtein function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-on-Levenshtein-function/m-p/672235#M201991</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to get the percentage using the levenshtein function, but the&amp;nbsp;code is&amp;nbsp;not working in SAS.&lt;/P&gt;
&lt;P&gt;(x1-x2)/x1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(maX(length(stringa), length(stringb)) - levenshtein(stringa, stringb))) /&lt;/P&gt;
&lt;P&gt;max(length(stringa),length(stringb)) as lev_perc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: I need to run the program in EAP hive using SAS, so i need to use the function that is compatible to hive too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for checking&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 23:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-on-Levenshtein-function/m-p/672235#M201991</guid>
      <dc:creator>Kalai2008</dc:creator>
      <dc:date>2020-07-24T23:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help on the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-on-Levenshtein-function/m-p/672237#M201993</link>
      <description>&lt;P&gt;Maybe you want &lt;A href="https://blogs.sas.com/content/sgf/2015/01/27/how-to-perform-a-fuzzy-match-using-sas-functions" target="_self"&gt;the COMPGED function&lt;/A&gt;, which is the Levenshtein distance in SAS.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 22:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-on-Levenshtein-function/m-p/672237#M201993</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2020-07-24T22:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help on the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-on-Levenshtein-function/m-p/672242#M201996</link>
      <description>&lt;P&gt;It think that should be COMPLEV function if you want the specific Levenshtein distance.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 22:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-on-Levenshtein-function/m-p/672242#M201996</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-24T22:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help on the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-on-Levenshtein-function/m-p/672354#M202054</link>
      <description>&lt;P&gt;&lt;BR /&gt;Thanks, I have tried both functions and not working.&lt;/P&gt;&lt;P&gt;COMPGED(stringa, stringb) AS VALUE1,&lt;/P&gt;&lt;P&gt;COMPLEV(stringa, stringb) AS VALUE2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Prepare error: Error while compiling statement: FAILED: SemanticException [Error 10011]: Line 1:53 Invalid&lt;/P&gt;&lt;P&gt;function 'COMPGED'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Prepare error: Error while compiling statement: FAILED: SemanticException [Error 10011]: Line 1:53 Invalid&lt;/P&gt;&lt;P&gt;function 'COMPLEV'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be its not working in Hive EAP&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 23:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-on-Levenshtein-function/m-p/672354#M202054</guid>
      <dc:creator>Kalai2008</dc:creator>
      <dc:date>2020-07-25T23:45:40Z</dc:date>
    </item>
  </channel>
</rss>

