<?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: finding word in string uppercase lowercase in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/finding-word-in-string-uppercase-lowercase/m-p/717385#M221839</link>
    <description>I meant regardless if the word drug is listed as 'Drug' or 'drug' which is shown in the example above</description>
    <pubDate>Sun, 07 Feb 2021 12:57:40 GMT</pubDate>
    <dc:creator>lillymaginta1</dc:creator>
    <dc:date>2021-02-07T12:57:40Z</dc:date>
    <item>
      <title>finding word in string uppercase lowercase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/finding-word-in-string-uppercase-lowercase/m-p/717383#M221837</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I want to retain 1 if the word 'drug' was found in a string, including upper and lower case words.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards ;
input ID   name ;	 
cards;
001 This is a drug 
001 A drug 
003 Drug
004  None 
004  None
;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Output data&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ID   Name              Var
001 This is a drug      1
001 A drug              1
003 Drug                1
004  None               0
004  None               0&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2021 12:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/finding-word-in-string-uppercase-lowercase/m-p/717383#M221837</guid>
      <dc:creator>lillymaginta1</dc:creator>
      <dc:date>2021-02-07T12:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: finding word in string uppercase lowercase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/finding-word-in-string-uppercase-lowercase/m-p/717384#M221838</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/69937"&gt;@lillymaginta1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I want to retain 1 if the word 'drug' was found in a string, including upper and lower case words.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards ;
input ID   name ;	 
cards;
001 This is a drug 
001 A drug 
003 Drug
004  None 
004  None
;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Output data&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ID   Name              Var
001 This is a drug      1
001 A drug              1
003 Drug                1
004  None               0
004  None               0&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not really sure what "including upper and lower case words" means here, and I don't want to guess. Does your data show an example? Does your data show an opposite example?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2021 12:53:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/finding-word-in-string-uppercase-lowercase/m-p/717384#M221838</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-02-07T12:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: finding word in string uppercase lowercase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/finding-word-in-string-uppercase-lowercase/m-p/717385#M221839</link>
      <description>I meant regardless if the word drug is listed as 'Drug' or 'drug' which is shown in the example above</description>
      <pubDate>Sun, 07 Feb 2021 12:57:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/finding-word-in-string-uppercase-lowercase/m-p/717385#M221839</guid>
      <dc:creator>lillymaginta1</dc:creator>
      <dc:date>2021-02-07T12:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: finding word in string uppercase lowercase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/finding-word-in-string-uppercase-lowercase/m-p/717386#M221840</link>
      <description>&lt;P&gt;You can use the FINDW function, with the 'i' modifier which will ignore the case of the letters. Example: &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p16rdsa30vmm43n1ej4936nwa01t.htm&amp;amp;locale=en#p0m182cedb5tm4n1n52msdjki57v" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p16rdsa30vmm43n1ej4936nwa01t.htm&amp;amp;locale=en#p0m182cedb5tm4n1n52msdjki57v&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2021 13:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/finding-word-in-string-uppercase-lowercase/m-p/717386#M221840</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-02-07T13:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: finding word in string uppercase lowercase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/finding-word-in-string-uppercase-lowercase/m-p/717399#M221843</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards ;
input ID  $3. name  $30. ;
if findw(name,'Drug',' ','i') then var=1;
else var=0;
cards;
001 This is a drug 
001 A drug 
003 Drug
004 None 
004 None
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Feb 2021 14:15:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/finding-word-in-string-uppercase-lowercase/m-p/717399#M221843</guid>
      <dc:creator>singhsahab</dc:creator>
      <dc:date>2021-02-07T14:15:29Z</dc:date>
    </item>
  </channel>
</rss>

