<?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: Comparing similar names from 2 separate data tables in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433208#M28016</link>
    <description>&lt;P&gt;OK thanks. Fixed that reference.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2018 18:12:41 GMT</pubDate>
    <dc:creator>WM</dc:creator>
    <dc:date>2018-02-01T18:12:41Z</dc:date>
    <item>
      <title>Comparing similar names from 2 separate data tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/432890#M27979</link>
      <description>&lt;P&gt;I have 2 excel worksheets that I've used excel add-in for fuzzy lookup. I have imported both into&amp;nbsp;SAS Enterprise Guide hoping I could figure out a similar approach. I've read about CompGed but not sure it it's what I want to use and if so then getting it coded correctly for what I want it to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The information I want to compare is named slightly different between&amp;nbsp;the worksheets(Insured Client Name vs&amp;nbsp;&amp;nbsp;Last Name First Name). I want to&amp;nbsp;&amp;nbsp;identify which names are closely matched. One thing to note is that the Last Name First Name is a concatenated value performed within the excel worksheet before I imported.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for suggestions on best way to approach identifying possible matches&amp;nbsp;and then idea of sample code to use. I copied some code I found within this community and inserted what I thought was correct but can't get it to work. It runs but doesn't return any output data.&amp;nbsp; The code I'm using is;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Insured_Name_Match;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt; &lt;FONT color="#008080" face="Courier New" size="3"&gt;work.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;'copy of all agencies &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2017&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; sales'n ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tmp1=soundex('Insured Client Name'n);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; i=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; nobs;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt; &lt;FONT color="#008080" face="Courier New" size="3"&gt;WORK.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;'query_for_dec2017 online illustr'n &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;point&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=i &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nobs&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=nobs;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tmp2=soundex('last name first name'n);&lt;/P&gt;&lt;P&gt;dif=compged(tmp1,tmp2);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; dif&amp;lt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;possible_match='Yes';&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;drop&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; i tmp1 tmp2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;output&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't get any error code. here's what the project log says. Here's the error code I get;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;22 GOPTIONS ACCESSIBLE;&lt;/P&gt;&lt;P&gt;23 data Insured_Name_Match;&lt;/P&gt;&lt;P&gt;24 set work.'copy of all agencies 2017 sales'n ;&lt;/P&gt;&lt;P&gt;25 tmp1=soundex('Insured Client Name'n);&lt;/P&gt;&lt;P&gt;26 do i=1 to nobs;&lt;/P&gt;&lt;P&gt;27 set WORK.'query_for_dec2017 online illustr'n point=i nobs=nobs;&lt;/P&gt;&lt;P&gt;28 tmp2=soundex('last name first name'n);&lt;/P&gt;&lt;P&gt;29 dif=compged(tmp1,tmp2);&lt;/P&gt;&lt;P&gt;30 if dif&amp;lt;=100 then do;&lt;/P&gt;&lt;P&gt;31 possible_match='Yes';&lt;/P&gt;&lt;P&gt;32 drop i tmp1 tmp2;&lt;/P&gt;&lt;P&gt;33 output;&lt;/P&gt;&lt;P&gt;34 end;&lt;/P&gt;&lt;P&gt;35 end;&lt;/P&gt;&lt;P&gt;36 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;/P&gt;&lt;P&gt;28:14&lt;/P&gt;&lt;P&gt;NOTE: Variable 'last name first name'n is uninitialized.&lt;/P&gt;&lt;P&gt;NOTE: There were 56521 observations read from the data set WORK.'COPY OF ALL AGENCIES 2017 SALES'n.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.INSURED_NAME_MATCH has 0 observations and 28 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 43.05 seconds&lt;/P&gt;&lt;P&gt;cpu time 41.82 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 19:59:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/432890#M27979</guid>
      <dc:creator>WM</dc:creator>
      <dc:date>2018-01-31T19:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing similar names from 2 separate data tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/432896#M27980</link>
      <description>&lt;P&gt;In SAS, you could use the "sounds like" operator&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=sqlproc&amp;amp;docsetTarget=p0a62rd151ctown1x38ihdpjozyv.htm&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=sqlproc&amp;amp;docsetTarget=p0a62rd151ctown1x38ihdpjozyv.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 20:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/432896#M27980</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-01-31T20:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing similar names from 2 separate data tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/432897#M27981</link>
      <description>Look up the Link King - it’s a free linkage tool based in SAS. The code is available somewhere but you need to dig a bit.</description>
      <pubDate>Wed, 31 Jan 2018 20:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/432897#M27981</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-31T20:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing similar names from 2 separate data tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/432898#M27982</link>
      <description>&lt;P&gt;Log said variable 'last name first name' does not exist. Check it in dataset.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 20:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/432898#M27982</guid>
      <dc:creator>MINX</dc:creator>
      <dc:date>2018-01-31T20:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing similar names from 2 separate data tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433207#M28015</link>
      <description>&lt;P&gt;Thanks for your suggestion. I am&amp;nbsp;comparing&amp;nbsp;a list of approx. 5000 names to another list of over 20,000, so don't think 'sounds like' can be used for my situation.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433207#M28015</guid>
      <dc:creator>WM</dc:creator>
      <dc:date>2018-02-01T18:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing similar names from 2 separate data tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433208#M28016</link>
      <description>&lt;P&gt;OK thanks. Fixed that reference.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433208#M28016</guid>
      <dc:creator>WM</dc:creator>
      <dc:date>2018-02-01T18:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing similar names from 2 separate data tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433210#M28017</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/62607"&gt;@WM&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for your suggestion. I am&amp;nbsp;comparing&amp;nbsp;a list of approx. 5000 names to another list of over 20,000, so don't think 'sounds like' can be used for my situation.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you try it? Did it not work? Why are you assuming it can't work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5000 * 20000 is 100,000,000 comparisons though so any approach is going to take time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433210#M28017</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-01T18:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing similar names from 2 separate data tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433214#M28018</link>
      <description>&lt;P&gt;To my knowledge this is not an&amp;nbsp;approved download for&amp;nbsp;company I work for.&amp;nbsp;Will need to stick with using Compged.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433214#M28018</guid>
      <dc:creator>WM</dc:creator>
      <dc:date>2018-02-01T18:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing similar names from 2 separate data tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433215#M28019</link>
      <description>&lt;P&gt;The SAS program is a text file available somewhere assuming you're referring to my reference to The Link King.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433215#M28019</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-01T18:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing similar names from 2 separate data tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433219#M28020</link>
      <description>&lt;P&gt;Looking at code it appears I need to include actual name in sounds like code for each name&amp;nbsp;I'm&amp;nbsp;looking for? Am I missing something that would tell it to repeat comparison for&amp;nbsp;each name on the list?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Program to Select Names That Sound like 'Johnson'&lt;/P&gt;&lt;DIV class="xis-codeBlockComplete"&gt;&lt;PRE&gt;libname proclib '&lt;SPAN class="xis-userSuppliedValue"&gt;SAS-library&lt;/SPAN&gt;';&lt;/PRE&gt;&lt;PRE&gt;proc sql;
   title "Employees Whose Last Name Sounds Like 'Johnson'";
   select idnum, upcase(lname), fname
      from proclib.staff&lt;/PRE&gt;&lt;PRE&gt;where lname=*"Johnson"
      order by 2;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433219#M28020</guid>
      <dc:creator>WM</dc:creator>
      <dc:date>2018-02-01T18:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing similar names from 2 separate data tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433222#M28021</link>
      <description>&lt;P&gt;The other side of the comparison is another variable from your other table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where lname =* other_variable_name&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:43:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433222#M28021</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-01T18:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing similar names from 2 separate data tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433288#M28026</link>
      <description>&lt;P&gt;Here's code I'm using. I'm just learning so am not following&amp;nbsp;how to identify\select name variables from two different data sets.&amp;nbsp;Does this look correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; 'Insured Client Name'n &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt; &lt;FONT color="#008080" face="Courier New" size="3"&gt;work.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;'copy of &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;all&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; agencies &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2017&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; sales'n;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; 'last_name_first_name'n &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt; &lt;FONT color="#008080" face="Courier New" size="3"&gt;work.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;'query_for_dec2017 online illustr'n;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; 'Insured Client Name'n =* 'last_name_first_name'n;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;The code runs but only returns 1 column for Insured Client Name. Also the log summary shows this;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;22 GOPTIONS ACCESSIBLE;&lt;/P&gt;&lt;P&gt;23 proc sql;&lt;/P&gt;&lt;P&gt;24 Select 'Insured Client Name'n from work.'copy of all agencies 2017 sales'n;&lt;/P&gt;&lt;P&gt;25 select 'last_name_first_name'n from work.'query_for_dec2017 online illustr'n;&lt;/P&gt;&lt;P&gt;26 where 'Insured Client Name'n =* 'last_name_first_name'n;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: This SAS global statement is not supported in PROC SQL. It has been ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 21:30:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433288#M28026</guid>
      <dc:creator>WM</dc:creator>
      <dc:date>2018-02-01T21:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing similar names from 2 separate data tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433581#M28040</link>
      <description>&lt;P&gt;No, you're not creating a table for starters and I doubt you want to work with the data from the ODS listing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You also need a join of some kind, even if its on itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%*sounds like comparison;&lt;BR /&gt;proc sql;
create table want as
select t1.name as original_name, t2.name as matched_name
from sashelp.class as t1
cross join sashelp.class as t2
where t1.name =* t2.name;
quit;

%*COMPGED comparison;
proc sql;
create table want2 as
select t1.name as original_name, t2.name as matched_name, compged(t1.name, t2.name) as distance
from sashelp.class as t1
cross join sashelp.class as t2
order by t1.name, distance ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Feb 2018 15:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-similar-names-from-2-separate-data-tables/m-p/433581#M28040</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-02T15:46:27Z</dc:date>
    </item>
  </channel>
</rss>

