<?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 matching text in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/matching-text/m-p/836083#M82095</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to match names between tow database. the names are not exactly the same. I want to apprximate and after that make a hand check&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run this program but it gives no match&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ; 
   create table results as
      select  secid, FUND_NAME_MS, FUND_NAME
        from imf_samplenew , Infra_CRSP 
       where imf_samplenew.FUND_NAME_MS eqt Infra_CRSP.FUND_NAME ;
quit ; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2022 14:43:44 GMT</pubDate>
    <dc:creator>sasphd</dc:creator>
    <dc:date>2022-09-30T14:43:44Z</dc:date>
    <item>
      <title>matching text</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/matching-text/m-p/836083#M82095</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to match names between tow database. the names are not exactly the same. I want to apprximate and after that make a hand check&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run this program but it gives no match&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ; 
   create table results as
      select  secid, FUND_NAME_MS, FUND_NAME
        from imf_samplenew , Infra_CRSP 
       where imf_samplenew.FUND_NAME_MS eqt Infra_CRSP.FUND_NAME ;
quit ; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 14:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/matching-text/m-p/836083#M82095</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2022-09-30T14:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: matching text</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/matching-text/m-p/836164#M82096</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4327"&gt;@sasphd&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to match names between tow database. the names are not exactly the same. I want to apprximate and after that make a hand check&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run this program but it gives no match&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ; 
   create table results as
      select  secid, FUND_NAME_MS, FUND_NAME
        from imf_samplenew , Infra_CRSP 
       where imf_samplenew.FUND_NAME_MS eqt Infra_CRSP.FUND_NAME ;
quit ; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Of course not, you are requiring some form of equality for the length of the shortest name. If one name is "ABC Co" and the other is "ABC CO" they do not match.&lt;/P&gt;
&lt;P&gt;If your differences are of case, like the above then you could try:&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;  where upcase(imf_samplenew.FUND_NAME_MS) eqt upcase(Infra_CRSP.FUND_NAME) ;&lt;/LI-CODE&gt;
&lt;P&gt;If you think the differences are one name is part of the other you might try&lt;/P&gt;
&lt;PRE&gt;where index(upcase(Longernamevariable),upcase(shorternamevariable))&amp;gt;0&lt;/PRE&gt;
&lt;P&gt;If the differences are more complex I might try&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;  where compged(imf_samplenew.FUND_NAME_MS,Infra_CRSP.FUND_NAME) &amp;lt; 800 ;&lt;/LI-CODE&gt;
&lt;P&gt;COMPGED is one of the functions that will calculate a "spelling distance" based on some internal rules so minor changes "ABC" and "ABc" have low values .If you have too many really different results reduce the 800, if you don't get matches increase it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 17:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/matching-text/m-p/836164#M82096</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-30T17:16:08Z</dc:date>
    </item>
  </channel>
</rss>

