<?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 help in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Index-function-help/m-p/21246#M4479</link>
    <description>You have an answer on another list</description>
    <pubDate>Tue, 21 Apr 2009 06:13:34 GMT</pubDate>
    <dc:creator>Andre</dc:creator>
    <dc:date>2009-04-21T06:13:34Z</dc:date>
    <item>
      <title>Index function help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Index-function-help/m-p/21245#M4478</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
I have a column &lt;BR /&gt;
Data set 1 &lt;BR /&gt;
Book type             Author &lt;BR /&gt;
fiction                   raddy &lt;BR /&gt;
fiction                   bosco &lt;BR /&gt;
science                 srins &lt;BR /&gt;
science                 srins &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data set 2 &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I have many columns in data set 2. However one of the column say &lt;BR /&gt;
description has entries about the author &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
description &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
raddy 99 version 1.0 vol 1 &lt;BR /&gt;
bosco 78 version 5.0 vol 8 &lt;BR /&gt;
srins99 version 2.0 vol1 &lt;BR /&gt;
srins_78 version7.0 vol1 &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I did a full join and have both the columns in data set 3. Now I need a way to find out whether the string in column author is there in column description.&lt;BR /&gt;
&lt;BR /&gt;
The code should result as&lt;BR /&gt;
author         description           flag &lt;BR /&gt;
raddy           raddy                  y&lt;BR /&gt;
bosco           bosco                y&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
For example raddy is there in the description and author so a flag &lt;BR /&gt;
colum would be set to Y. &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Please help</description>
      <pubDate>Mon, 20 Apr 2009 21:30:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Index-function-help/m-p/21245#M4478</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-20T21:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Index function help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Index-function-help/m-p/21246#M4479</link>
      <description>You have an answer on another list</description>
      <pubDate>Tue, 21 Apr 2009 06:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Index-function-help/m-p/21246#M4479</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2009-04-21T06:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Index function help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Index-function-help/m-p/21247#M4480</link>
      <description>Just use it as documented...;-)&lt;BR /&gt;
&lt;BR /&gt;
SQL style:&lt;BR /&gt;
case when index(description,author) then "y" else "n" end as flag&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Tue, 21 Apr 2009 06:15:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Index-function-help/m-p/21247#M4480</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2009-04-21T06:15:29Z</dc:date>
    </item>
  </channel>
</rss>

