<?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: How to compare two column strings which are almost same using LIKE or CONTAINS operator in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-column-strings-which-are-almost-same-using/m-p/699109#M213854</link>
    <description>Check fuzz match functions like :&lt;BR /&gt;SPEDIS()&lt;BR /&gt;COMPLEV()&lt;BR /&gt;COMPGEN()</description>
    <pubDate>Mon, 16 Nov 2020 12:36:36 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-11-16T12:36:36Z</dc:date>
    <item>
      <title>How to compare two column strings which are almost same using LIKE or CONTAINS operator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-column-strings-which-are-almost-same-using/m-p/699028#M213831</link>
      <description>&lt;P&gt;Dear SAS community,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to compare two columns which are almost same as shown below. If you look at the data carefully the sender is same as receiver (except that some of the rows have middle name etc). I have to code in a way where I can get the last record where the sender and receiver names don't match at all. This is the sample data of real time data. Please help me to find a solution. I tried using like operator and contains operator but of no use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA have ;&lt;BR /&gt;INPUT sender $13. receiver$33.;&lt;BR /&gt;CARDS;&lt;BR /&gt;DON A ABROGS FOR FURTHER CREDIT: DON A ABROGS&lt;BR /&gt;ANTHONY BOGGS INFAVOR OF ANTHONY L BOGGS&lt;BR /&gt;TIM D BRUNS TIMOTHY BRUNS &lt;BR /&gt;KEN V PAYE KENNETH V PAYE&lt;BR /&gt;ERICA PARIS ERICA N PARIS&lt;BR /&gt;JEFF WOOD JEFFORY WOOD&lt;BR /&gt;NICK PATEL CREDIT TO: 345678 (NICK PATEL)&lt;BR /&gt;JOEL NELSON TAMMY WOODWARDS&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I tried the following code and didn't get what I wanted. I need to see the last record (joel nelson and tammy woodwards) record as a result&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	create table want as 
	select *
	from have 
	where compress(receiver) like '%'||compress(sender)||'%' 
		 
	; quit; 

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Nov 2020 04:29:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-column-strings-which-are-almost-same-using/m-p/699028#M213831</guid>
      <dc:creator>buddha_d</dc:creator>
      <dc:date>2020-11-16T04:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two column strings which are almost same using LIKE or CONTAINS operator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-column-strings-which-are-almost-same-using/m-p/699040#M213838</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA have ;
INPUT sender $13. receiver$33.;
CARDS;
DON A ABROGS  FOR FURTHER CREDIT: DON A ABROGS
ANTHONY BOGGS INFAVOR OF ANTHONY L BOGGS
TIM D BRUNS   TIMOTHY BRUNS 
KEN V PAYE    KENNETH V PAYE
ERICA PARIS   ERICA N PARIS
JEFF WOOD     JEFFORY WOOD
NICK PATEL    CREDIT TO: 345678 (NICK PATEL)
JOEL NELSON   TAMMY WOODWARDS
;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;sorry for unformatted data posting previously&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 05:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-column-strings-which-are-almost-same-using/m-p/699040#M213838</guid>
      <dc:creator>buddha_d</dc:creator>
      <dc:date>2020-11-16T05:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two column strings which are almost same using LIKE or CONTAINS operator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-column-strings-which-are-almost-same-using/m-p/699109#M213854</link>
      <description>Check fuzz match functions like :&lt;BR /&gt;SPEDIS()&lt;BR /&gt;COMPLEV()&lt;BR /&gt;COMPGEN()</description>
      <pubDate>Mon, 16 Nov 2020 12:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-column-strings-which-are-almost-same-using/m-p/699109#M213854</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-11-16T12:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two column strings which are almost same using LIKE or CONTAINS operator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-column-strings-which-are-almost-same-using/m-p/699485#M213979</link>
      <description>&lt;P&gt;Thanks Ksharp !! I will give it a try.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 13:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-two-column-strings-which-are-almost-same-using/m-p/699485#M213979</guid>
      <dc:creator>buddha_d</dc:creator>
      <dc:date>2020-11-17T13:38:18Z</dc:date>
    </item>
  </channel>
</rss>

