<?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 How to find position of selective word in entire character column observation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-position-of-selective-word-in-entire-character/m-p/623797#M183697</link>
    <description>&lt;P&gt;In the below example total 6 words are present.&lt;/P&gt;&lt;P&gt;I know the word ex: countries but i don't know at which position this word is present in a entire observation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to find position of the selective word in a complete sentence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data ds;&lt;/P&gt;&lt;P&gt;&amp;nbsp; remark="most populated countries in the world";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Passing word - "countries"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;required output- 3&lt;/P&gt;&lt;P&gt;because countries word occurred at 3 position&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried with findw, indexw, but unable to get required output because charterer by character results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2020 10:00:22 GMT</pubDate>
    <dc:creator>Veeresh</dc:creator>
    <dc:date>2020-02-11T10:00:22Z</dc:date>
    <item>
      <title>How to find position of selective word in entire character column observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-position-of-selective-word-in-entire-character/m-p/623797#M183697</link>
      <description>&lt;P&gt;In the below example total 6 words are present.&lt;/P&gt;&lt;P&gt;I know the word ex: countries but i don't know at which position this word is present in a entire observation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to find position of the selective word in a complete sentence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data ds;&lt;/P&gt;&lt;P&gt;&amp;nbsp; remark="most populated countries in the world";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Passing word - "countries"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;required output- 3&lt;/P&gt;&lt;P&gt;because countries word occurred at 3 position&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried with findw, indexw, but unable to get required output because charterer by character results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 10:00:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-position-of-selective-word-in-entire-character/m-p/623797#M183697</guid>
      <dc:creator>Veeresh</dc:creator>
      <dc:date>2020-02-11T10:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to find position of selective word in entire character column observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-position-of-selective-word-in-entire-character/m-p/623799#M183699</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the findw function as follows :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;pos=findw(remark, "countries",' ','e');
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Feb 2020 10:02:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-position-of-selective-word-in-entire-character/m-p/623799#M183699</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2020-02-11T10:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to find position of selective word in entire character column observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-position-of-selective-word-in-entire-character/m-p/623801#M183701</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/310458"&gt;@Veeresh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As mentioned by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30622"&gt;@gamotte&lt;/a&gt;&amp;nbsp;, the&amp;nbsp;E modifier in 4th argument of the FINDW() function tells SAS to count the number of words instead of returning the starting position. The modifier argument must be positioned after the delimiter argument, which is the 3rd one.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 10:25:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-position-of-selective-word-in-entire-character/m-p/623801#M183701</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-11T10:25:42Z</dc:date>
    </item>
  </channel>
</rss>

