<?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: macro function %index in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/macro-function-index/m-p/5889#M527</link>
    <description>Sorry &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
The answer is &lt;B&gt;%let spsPos = %index(&amp;amp;str,%quote( ));&lt;/B&gt;</description>
    <pubDate>Thu, 13 Dec 2007 15:44:57 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-12-13T15:44:57Z</dc:date>
    <item>
      <title>macro function %index</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/macro-function-index/m-p/5888#M526</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I need the number of character in string.&lt;BR /&gt;
If I do like this:&lt;BR /&gt;
%let str = 'new year';&lt;BR /&gt;
%let spsPos = %index(&amp;amp;str,y);&lt;BR /&gt;
&lt;BR /&gt;
It's ok. spsPos = 5. But how can I see the position of space?&lt;BR /&gt;
I have tried like this:&lt;BR /&gt;
%let spsPos = %index(&amp;amp;str, );&lt;BR /&gt;
like this:&lt;BR /&gt;
%let spsPos = %index(&amp;amp;str,' ');&lt;BR /&gt;
and like this:&lt;BR /&gt;
%let spsPos = %index(&amp;amp;str);&lt;BR /&gt;
That doesn't work.</description>
      <pubDate>Thu, 13 Dec 2007 15:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/macro-function-index/m-p/5888#M526</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-12-13T15:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: macro function %index</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/macro-function-index/m-p/5889#M527</link>
      <description>Sorry &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
The answer is &lt;B&gt;%let spsPos = %index(&amp;amp;str,%quote( ));&lt;/B&gt;</description>
      <pubDate>Thu, 13 Dec 2007 15:44:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/macro-function-index/m-p/5889#M527</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-12-13T15:44:57Z</dc:date>
    </item>
  </channel>
</rss>

