<?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 do I find words in text using find() in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-words-in-text-using-find/m-p/281573#M57127</link>
    <description>&lt;P&gt;Likely the trailing spaces that are implicitly present in your strings play a role. You can omit them from the comparison by adding the t modeifier to the third parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;find_hmbp=find(permit,facility_hmbp_3,'it')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2016 21:33:57 GMT</pubDate>
    <dc:creator>jklaverstijn</dc:creator>
    <dc:date>2016-06-30T21:33:57Z</dc:date>
    <item>
      <title>how do I find words in text using find()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-words-in-text-using-find/m-p/281569#M57126</link>
      <description>&lt;P&gt;permit is a text field with length 40.&lt;BR /&gt;facility is a text field with length 60.&lt;BR /&gt;facility_hmbp_3 = scan(facility,3,'') with length 40.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If facility_hmbp_3 is equal to Lewis then the variable find_hmbp should be 6 for permit="OCEH Lewis Sub" where find_hmbp=find(permit,facility_hmbp_3,'i').&lt;BR /&gt;However, I'm currently getting 0.&lt;BR /&gt;If I change find_hmbp=find(permit,"Lewis",'i') then I do get 6.&lt;BR /&gt;Why am I not getting 6 with find_hmbp=find(permit,facility_hmbp_3,'i')?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 21:23:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-words-in-text-using-find/m-p/281569#M57126</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2016-06-30T21:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: how do I find words in text using find()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-words-in-text-using-find/m-p/281573#M57127</link>
      <description>&lt;P&gt;Likely the trailing spaces that are implicitly present in your strings play a role. You can omit them from the comparison by adding the t modeifier to the third parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;find_hmbp=find(permit,facility_hmbp_3,'it')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 21:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-words-in-text-using-find/m-p/281573#M57127</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-06-30T21:33:57Z</dc:date>
    </item>
  </channel>
</rss>

