<?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: How to find a word in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-a-word/m-p/757916#M239273</link>
    <description>FIND() function?</description>
    <pubDate>Wed, 28 Jul 2021 19:47:08 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-07-28T19:47:08Z</dc:date>
    <item>
      <title>How to find a word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-a-word/m-p/757896#M239265</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How do I find the word "elop' from the work Developmental. I want sas to output anywhere "elop" is within the variable. I thought about&amp;nbsp;using the % in the data statement but got the wrong answer.&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;data check;&lt;/P&gt;&lt;P&gt;set test;&lt;/P&gt;&lt;P&gt;if&amp;nbsp;%elop= 'developmental';&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 19:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-a-word/m-p/757896#M239265</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2021-07-28T19:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to find a word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-a-word/m-p/757899#M239266</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;If INDEX(Variable_Name, 'elop');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA	Have;
	LENGTH	Variable_Name		$32;
	INFILE	DATALINES	MISSOVER;
	INPUT	Variable_Name		$;
DATALINES;
Developmental
Experimental
Tempermental
Elope
Develop
Production
QualityControl
;
RUN;

DATA	Want;
	SET	Have;
	IF	INDEX(LOWCASE(Variable_Name), 'elop');
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Yields the following results:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jimbarbour_0-1627504258674.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62033i1251BFD6B96BAE0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jimbarbour_0-1627504258674.png" alt="jimbarbour_0-1627504258674.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 20:31:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-a-word/m-p/757899#M239266</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-07-28T20:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to find a word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-a-word/m-p/757901#M239268</link>
      <description>&lt;P&gt;You can also use the &lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/lefunctionsref/p00ab6ey29t2i8n1ihel88tqtga9.htm" target="_self"&gt;FIND()&lt;/A&gt; function, which has an option that allows you to do the search independent of the case of the letters, if that's something you want to do.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 19:26:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-a-word/m-p/757901#M239268</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-28T19:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to find a word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-a-word/m-p/757916#M239273</link>
      <description>FIND() function?</description>
      <pubDate>Wed, 28 Jul 2021 19:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-a-word/m-p/757916#M239273</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-28T19:47:08Z</dc:date>
    </item>
  </channel>
</rss>

