<?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: index function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/index-function/m-p/27780#M5142</link>
    <description>Thank you, this works as expected!</description>
    <pubDate>Wed, 06 May 2009 13:30:27 GMT</pubDate>
    <dc:creator>ieva</dc:creator>
    <dc:date>2009-05-06T13:30:27Z</dc:date>
    <item>
      <title>index function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/index-function/m-p/27778#M5140</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
Maybe someone of you knows - is there a function similar to index, only working from right side to left (not left to right as index does).&lt;BR /&gt;
&lt;BR /&gt;
For example, in this case index is 3 and 4. But I would like to find which position counting from right side when first time appears '1' (that would be 2 and 5).&lt;BR /&gt;
&lt;BR /&gt;
data b;&lt;BR /&gt;
input a $8.;&lt;BR /&gt;
index=index(a, '1');&lt;BR /&gt;
datalines;&lt;BR /&gt;
00101110&lt;BR /&gt;
00010000&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your ideas, &lt;BR /&gt;
Ieva

Message was edited by: ieva</description>
      <pubDate>Wed, 06 May 2009 12:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/index-function/m-p/27778#M5140</guid>
      <dc:creator>ieva</dc:creator>
      <dc:date>2009-05-06T12:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: index function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/index-function/m-p/27779#M5141</link>
      <description>Explore the FIND function using a negative large-value (or a LENGTH(&lt;VARNAME&gt;)  function) for the starting position.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;/VARNAME&gt;</description>
      <pubDate>Wed, 06 May 2009 13:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/index-function/m-p/27779#M5141</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-06T13:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: index function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/index-function/m-p/27780#M5142</link>
      <description>Thank you, this works as expected!</description>
      <pubDate>Wed, 06 May 2009 13:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/index-function/m-p/27780#M5142</guid>
      <dc:creator>ieva</dc:creator>
      <dc:date>2009-05-06T13:30:27Z</dc:date>
    </item>
  </channel>
</rss>

