<?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 find () and index() in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/find-and-index/m-p/498178#M6263</link>
    <description>&lt;P&gt;can anybody tell me the difference between find() and index() giving an example.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Sep 2018 06:37:55 GMT</pubDate>
    <dc:creator>AKHILA</dc:creator>
    <dc:date>2018-09-23T06:37:55Z</dc:date>
    <item>
      <title>find () and index()</title>
      <link>https://communities.sas.com/t5/SAS-Studio/find-and-index/m-p/498178#M6263</link>
      <description>&lt;P&gt;can anybody tell me the difference between find() and index() giving an example.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 06:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/find-and-index/m-p/498178#M6263</guid>
      <dc:creator>AKHILA</dc:creator>
      <dc:date>2018-09-23T06:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: find () and index()</title>
      <link>https://communities.sas.com/t5/SAS-Studio/find-and-index/m-p/498182#M6264</link>
      <description>&lt;P&gt;&lt;STRONG&gt;find()&lt;/STRONG&gt; -&amp;nbsp;&lt;!-- &amp;lt;meta prod="SAS 9.2 Language Reference: Dictionary" title="FIND Function" url="../lrdict.hlp/a002267763.htm "&gt; --&gt;&lt;/P&gt;
&lt;DIV class="sgml"&gt;
&lt;TABLE width="100%" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR valign="top"&gt;
&lt;TD&gt;
&lt;H2&gt;&lt;A name="a002504497" target="_blank"&gt;&lt;/A&gt;Syntax -&amp;nbsp;&lt;/H2&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE cellspacing="2" cellpadding="4"&gt;
&lt;TBODY&gt;
&lt;TR valign="top"&gt;
&lt;TD&gt;&lt;SPAN class="strong"&gt;FIND&lt;/SPAN&gt;(&lt;SPAN class="emph"&gt;string,substring&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="emph"&gt;,modifiers&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="emph"&gt;,startpos&lt;/SPAN&gt;&amp;gt;)&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;P&gt;"The FIND function searches &lt;SPAN class="emph"&gt;string&lt;/SPAN&gt; for the first occurrence of the specified &lt;SPAN class="emph"&gt;substring&lt;/SPAN&gt;, and returns the position of that substring. If the substring is not found in &lt;SPAN class="emph"&gt;string&lt;/SPAN&gt;, FIND returns a value of 0.&lt;/P&gt;
&lt;DIV class="sgml"&gt;
&lt;P&gt;&lt;A name="a002893516" target="_blank"&gt;&lt;/A&gt;If &lt;STRONG&gt;&lt;SPAN class="emph"&gt;startpos&lt;/SPAN&gt; &lt;/STRONG&gt;is not specified, FIND starts the search at the beginning of the &lt;SPAN class="emph"&gt;string&lt;/SPAN&gt; and searches the &lt;SPAN class="emph"&gt;string&lt;/SPAN&gt; from left to right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; If &lt;STRONG&gt;&lt;SPAN class="emph"&gt;startpos&lt;/SPAN&gt; &lt;/STRONG&gt;is specified, the absolute value of &lt;SPAN class="emph"&gt;startpos&lt;/SPAN&gt; determines the position at which to start the search.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; The sign of &lt;SPAN class="emph"&gt;startpos&lt;/SPAN&gt; determines the direction of the search."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;index() -&lt;/STRONG&gt;&lt;BR /&gt;&lt;!-- &amp;lt;meta prod="SAS 9.2 Language Reference: Dictionary" title="INDEX Function" url="../lrdict.hlp/a000212242.htm "&gt; --&gt;&lt;/P&gt;
&lt;DIV class="sgml"&gt;
&lt;TABLE width="100%" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR valign="top"&gt;
&lt;TD&gt;
&lt;H2&gt;&lt;A name="a002504630" target="_blank"&gt;&lt;/A&gt;Syntax&lt;/H2&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE cellspacing="2" cellpadding="4"&gt;
&lt;TBODY&gt;
&lt;TR valign="top"&gt;
&lt;TD&gt;&lt;SPAN class="strong"&gt;INDEX&lt;/SPAN&gt;(&lt;SPAN class="emph"&gt;source,excerpt&lt;/SPAN&gt;)&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;"The INDEX function searches &lt;SPAN class="emph"&gt;source&lt;/SPAN&gt;, from left to right, for the first occurrence of the string specified in &lt;SPAN class="emph"&gt;excerpt&lt;/SPAN&gt;, and returns the position in &lt;SPAN class="emph"&gt;source&lt;/SPAN&gt; of the string's first character. If the string is not found in &lt;SPAN class="emph"&gt;source&lt;/SPAN&gt;, INDEX returns a value of 0.&lt;/P&gt;
&lt;P&gt;If there are multiple occurrences of the string, &lt;STRONG&gt;INDEX returns only the position of the first occurrence&lt;/STRONG&gt;."&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 23 Sep 2018 07:32:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/find-and-index/m-p/498182#M6264</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-09-23T07:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: find () and index()</title>
      <link>https://communities.sas.com/t5/SAS-Studio/find-and-index/m-p/498184#M6265</link>
      <description>&lt;P&gt;The &lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p00ab6ey29t2i8n1ihel88tqtga9.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;Find&lt;/A&gt; and &lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n0vxokxhv8lr84n10nrbnzp7gnba.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;Index&lt;/A&gt;&amp;nbsp;function documentation sites explains the differences.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 07:42:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/find-and-index/m-p/498184#M6265</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-09-23T07:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: find () and index()</title>
      <link>https://communities.sas.com/t5/SAS-Studio/find-and-index/m-p/498458#M6266</link>
      <description>&lt;P&gt;thank you sir&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 16:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/find-and-index/m-p/498458#M6266</guid>
      <dc:creator>AKHILA</dc:creator>
      <dc:date>2018-09-24T16:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: find () and index()</title>
      <link>https://communities.sas.com/t5/SAS-Studio/find-and-index/m-p/498595#M6267</link>
      <description>&lt;P&gt;So don't leave this topic hanging.&amp;nbsp; Mark the solution response, however "trivial".&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 21:12:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/find-and-index/m-p/498595#M6267</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-09-24T21:12:06Z</dc:date>
    </item>
  </channel>
</rss>

