<?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: Found Matching Values in single variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Found-Matching-Values-in-single-variable/m-p/682182#M206481</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/341936"&gt;@AnandsinhSindha&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;get some score based on above code but i am not getting my desired output....&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Of course not, i wrote: "The following step should get you started", meaning that it is up you to decide which function to use and which score is low enough to indicate a match.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2020 09:44:30 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2020-09-08T09:44:30Z</dc:date>
    <item>
      <title>Found Matching Values in single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Found-Matching-Values-in-single-variable/m-p/682126#M206463</link>
      <description>&lt;P&gt;I need help to get my desire output through the sas coding.&lt;/P&gt;&lt;P&gt;I am using sas eg 8.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one data with column name "Name" and i want to found sound like name in same variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Name&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mrityunjaya&lt;BR /&gt;gaurav&lt;BR /&gt;deepak&lt;BR /&gt;mrtunjay&lt;BR /&gt;dipak&lt;BR /&gt;piyush&lt;BR /&gt;mrityunjaya;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And i want output like this.(generate new column with "match" "non match" value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;mrityunjaya&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;match&lt;/P&gt;&lt;P&gt;gaurav&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;not-match&lt;BR /&gt;deepak&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;match&lt;BR /&gt;mrtunjay&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;match&lt;BR /&gt;dipak&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;match&lt;BR /&gt;piyush&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;not-match&lt;BR /&gt;mrityunjaya&amp;nbsp; &amp;nbsp; &amp;nbsp;match&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can some please help me how can i do this in sas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 06:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Found-Matching-Values-in-single-variable/m-p/682126#M206463</guid>
      <dc:creator>AnandsinhSindha</dc:creator>
      <dc:date>2020-09-08T06:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Found Matching Values in single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Found-Matching-Values-in-single-variable/m-p/682142#M206465</link>
      <description>&lt;P&gt;Functions like spedis, compged and/or complev should help you to identify matches. The following step should get you started:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	length name $ 20;
	input name;
	datalines;
mrityunjaya
gaurav
deepak
mrtunjay
dipak
piyush
mrityunjaya
;

data scores;
	set have;

	do i = _n_+1 to numObs;
		set have(rename=(name=cmp)) nobs=numObs point=i;
		score_spedis = spedis(name, cmp);
		score_compged = compged(name, cmp);
		score_complev = complev(name, cmp);

		output;
	end;
run&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Sep 2020 06:47:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Found-Matching-Values-in-single-variable/m-p/682142#M206465</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-09-08T06:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Found Matching Values in single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Found-Matching-Values-in-single-variable/m-p/682153#M206469</link>
      <description>get some score based on above code but i am not getting my desired output....</description>
      <pubDate>Tue, 08 Sep 2020 07:33:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Found-Matching-Values-in-single-variable/m-p/682153#M206469</guid>
      <dc:creator>AnandsinhSindha</dc:creator>
      <dc:date>2020-09-08T07:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Found Matching Values in single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Found-Matching-Values-in-single-variable/m-p/682162#M206472</link>
      <description>&lt;P&gt;The answer to your question is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  select unique a.NAME, max(a.NAME =* b.NAME) as FLAG 
  from TABLE a
         cross join
       TABLE b
  group by 1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But a cross join gets really expensive really quickly when the volume of data increases.&lt;/P&gt;
&lt;P&gt;10,000 records yield 100 million matches.&lt;/P&gt;
&lt;P&gt;There are better ways, and this is typically an iterative process. For example you can remove the exact matches first to reduce the volume. Or you can try matching the first letter before using the sound like operator.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 08:10:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Found-Matching-Values-in-single-variable/m-p/682162#M206472</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-09-08T08:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Found Matching Values in single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Found-Matching-Values-in-single-variable/m-p/682182#M206481</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/341936"&gt;@AnandsinhSindha&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;get some score based on above code but i am not getting my desired output....&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Of course not, i wrote: "The following step should get you started", meaning that it is up you to decide which function to use and which score is low enough to indicate a match.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 09:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Found-Matching-Values-in-single-variable/m-p/682182#M206481</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-09-08T09:44:30Z</dc:date>
    </item>
  </channel>
</rss>

