<?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 do I find whether email id contains first name? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-whether-email-id-contains-first-name/m-p/707460#M217218</link>
    <description>This worked. Thanks a lot!!</description>
    <pubDate>Mon, 21 Dec 2020 14:07:05 GMT</pubDate>
    <dc:creator>Shradha1</dc:creator>
    <dc:date>2020-12-21T14:07:05Z</dc:date>
    <item>
      <title>How do I find whether email id contains first name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-whether-email-id-contains-first-name/m-p/707414#M217196</link>
      <description>I have a column on first names and another on email ids. How do I check if email id contains the first name? I am Working on sas 9.4. I have used the FIND function but it returns 0 for all observations</description>
      <pubDate>Mon, 21 Dec 2020 12:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-whether-email-id-contains-first-name/m-p/707414#M217196</guid>
      <dc:creator>Shradha1</dc:creator>
      <dc:date>2020-12-21T12:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find whether email id contains first name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-whether-email-id-contains-first-name/m-p/707434#M217202</link>
      <description>&lt;P&gt;Have you changed the case of your strings?&amp;nbsp; Using UPCASE() or LOWCASE() helps for this.&amp;nbsp; One would apply one of these function to both strings before using FIND().&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 13:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-whether-email-id-contains-first-name/m-p/707434#M217202</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2020-12-21T13:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find whether email id contains first name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-whether-email-id-contains-first-name/m-p/707445#M217208</link>
      <description>Yes. Both the strings are in upper case, still the find function is giving the value as 0 for all observations, which shouldn't be the case, because there are many email IDs with first name present in them</description>
      <pubDate>Mon, 21 Dec 2020 13:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-whether-email-id-contains-first-name/m-p/707445#M217208</guid>
      <dc:creator>Shradha1</dc:creator>
      <dc:date>2020-12-21T13:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find whether email id contains first name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-whether-email-id-contains-first-name/m-p/707446#M217209</link>
      <description>&lt;P&gt;You need to use trim around the second parameter of find, like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;containsFirstname = find(eMail, trim(firstname)) &amp;gt; 0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Dec 2020 13:35:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-whether-email-id-contains-first-name/m-p/707446#M217209</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-12-21T13:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find whether email id contains first name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-whether-email-id-contains-first-name/m-p/707460#M217218</link>
      <description>This worked. Thanks a lot!!</description>
      <pubDate>Mon, 21 Dec 2020 14:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-whether-email-id-contains-first-name/m-p/707460#M217218</guid>
      <dc:creator>Shradha1</dc:creator>
      <dc:date>2020-12-21T14:07:05Z</dc:date>
    </item>
  </channel>
</rss>

