<?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: Help with index function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-index-function/m-p/675187#M203397</link>
    <description>&lt;P&gt;If you want to search for words, use the function findw or a regular expression.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data two;
set one;
if findw(val,'Platelet') &amp;gt;0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 07 Aug 2020 07:06:59 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2020-08-07T07:06:59Z</dc:date>
    <item>
      <title>Help with index function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-index-function/m-p/675186#M203396</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;
&lt;P&gt;Please suggest in my code. I need to output only records containing word "Platelet'. I am getting both records. Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output needed;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;tran Platelet&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
input val $1-21;
datalines;
tran Plateletpheresis
tran Platelet
;

data two;
set one;
if index(val,'Platelet') &amp;gt;0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Aug 2020 06:48:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-index-function/m-p/675186#M203396</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2020-08-07T06:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with index function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-index-function/m-p/675187#M203397</link>
      <description>&lt;P&gt;If you want to search for words, use the function findw or a regular expression.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data two;
set one;
if findw(val,'Platelet') &amp;gt;0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Aug 2020 07:06:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-index-function/m-p/675187#M203397</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-08-07T07:06:59Z</dc:date>
    </item>
  </channel>
</rss>

