<?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: if find multiple strings and case insensitive.. help!! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-if-find-multiple-strings-and-case-insensitive-help/m-p/849981#M335963</link>
    <description>&lt;P&gt;Thank you so much!!!!!!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 22:47:49 GMT</pubDate>
    <dc:creator>Lena_PA</dc:creator>
    <dc:date>2022-12-15T22:47:49Z</dc:date>
    <item>
      <title>How to: if find multiple strings and case insensitive.. help!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-if-find-multiple-strings-and-case-insensitive-help/m-p/849971#M335956</link>
      <description>&lt;P&gt;I'm trying to create a variable 'Baby' which contains either 'baby' or 'infant' or 'toddler' from a variable 'Brand'. I figured it out (after a long time, SAS novice here) how to do a single word (baby) but I would like to add two more (infant and toddler). Can you please help?? thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;---here is my code---&lt;/P&gt;&lt;P&gt;Data baby ;&lt;BR /&gt;Set baby;&lt;BR /&gt;if find (Brand, "baby" , "i") then Baby = 1; else baby = 0; run;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 22:17:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-if-find-multiple-strings-and-case-insensitive-help/m-p/849971#M335956</guid>
      <dc:creator>Lena_PA</dc:creator>
      <dc:date>2022-12-15T22:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to: if find multiple strings and case insensitive.. help!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-if-find-multiple-strings-and-case-insensitive-help/m-p/849973#M335957</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437752"&gt;@Lena_PA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm trying to create a variable 'Baby' which contains either 'baby' or 'infant' or 'toddler' from a variable 'Brand'. I figured it out (after a long time, SAS novice here) how to do a single word (baby) but I would like to add two more (infant and toddler). Can you please help?? thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;---here is my code---&lt;/P&gt;
&lt;P&gt;Data baby ;&lt;BR /&gt;Set baby;&lt;BR /&gt;if find (Brand, "baby" , "i") then Baby = 1; else baby = 0; run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You say you want a variable which contains 'baby' or 'infant' or 'toddler', but then you show code that assigns 0 or 1 to this variable. Please clarify what you want.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 22:31:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-if-find-multiple-strings-and-case-insensitive-help/m-p/849973#M335957</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-15T22:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to: if find multiple strings and case insensitive.. help!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-if-find-multiple-strings-and-case-insensitive-help/m-p/849974#M335958</link>
      <description>&lt;P&gt;Oh sorry. I want to create a new variable name "BABY" = 1 if the existing variable "Brand" contains "baby" or "infant" or "toddler".&amp;nbsp; If Brand does not include any of these three words, then BABY =0.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 22:35:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-if-find-multiple-strings-and-case-insensitive-help/m-p/849974#M335958</guid>
      <dc:creator>Lena_PA</dc:creator>
      <dc:date>2022-12-15T22:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to: if find multiple strings and case insensitive.. help!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-if-find-multiple-strings-and-case-insensitive-help/m-p/849975#M335959</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if find (Brand, "baby" , "i")&amp;gt;0 or find(Brand,'infant','i')&amp;gt;0 or find(Brand,'toddler','i')&amp;gt;0 then Baby = 1; else baby = 0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Dec 2022 22:36:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-if-find-multiple-strings-and-case-insensitive-help/m-p/849975#M335959</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-15T22:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to: if find multiple strings and case insensitive.. help!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-if-find-multiple-strings-and-case-insensitive-help/m-p/849981#M335963</link>
      <description>&lt;P&gt;Thank you so much!!!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 22:47:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-if-find-multiple-strings-and-case-insensitive-help/m-p/849981#M335963</guid>
      <dc:creator>Lena_PA</dc:creator>
      <dc:date>2022-12-15T22:47:49Z</dc:date>
    </item>
  </channel>
</rss>

