<?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 Exact text match using Find in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Exact-text-match-using-Find/m-p/208507#M38767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find an exact match of a text. &lt;/P&gt;&lt;P&gt;From the list below, I need to flag records (1 &amp;amp; 2) with the text "Connect". But when I use Find() it flags all the 4 records. Findw() is not helping either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connect&lt;/P&gt;&lt;P&gt;Service, Connect&lt;/P&gt;&lt;P&gt;Service, Connect/Boat&lt;/P&gt;&lt;P&gt;Service, Connect/Friend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2015 23:57:51 GMT</pubDate>
    <dc:creator>krishmar1</dc:creator>
    <dc:date>2015-03-23T23:57:51Z</dc:date>
    <item>
      <title>Exact text match using Find</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exact-text-match-using-Find/m-p/208507#M38767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find an exact match of a text. &lt;/P&gt;&lt;P&gt;From the list below, I need to flag records (1 &amp;amp; 2) with the text "Connect". But when I use Find() it flags all the 4 records. Findw() is not helping either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connect&lt;/P&gt;&lt;P&gt;Service, Connect&lt;/P&gt;&lt;P&gt;Service, Connect/Boat&lt;/P&gt;&lt;P&gt;Service, Connect/Friend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 23:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exact-text-match-using-Find/m-p/208507#M38767</guid>
      <dc:creator>krishmar1</dc:creator>
      <dc:date>2015-03-23T23:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exact text match using Find</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exact-text-match-using-Find/m-p/208508#M38768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Findw should work for you in this case, you just need to specify the delimiters, otherwise the default will kick in, which includes '/' that you don't want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;cards&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;truncover&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; str $ &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;20.&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flag=findw(str,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'Connect'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;' ,'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;)&amp;gt;&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;Connect&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;Service, Connect&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;Service, Connect/Boat&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;Service, Connect/Friend&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 00:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exact-text-match-using-Find/m-p/208508#M38768</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-03-24T00:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exact text match using Find</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exact-text-match-using-Find/m-p/208509#M38769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 04:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exact-text-match-using-Find/m-p/208509#M38769</guid>
      <dc:creator>krishmar1</dc:creator>
      <dc:date>2015-03-24T04:52:46Z</dc:date>
    </item>
  </channel>
</rss>

