<?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: keep required email address in observations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/keep-required-email-address-in-observations/m-p/804336#M316734</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data email;
input email $30.;
email_provider = scan(email, 2, '@');
datalines;
xxxxxxxxxxx@gmail.com
xxxxxxxxxxxx@outlook.com
xxxxxxxxxxx@gmail.com
xxxxxxxxxxx@gmail.com
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There are many ways to do this including the SCAN function to read the second word in the string where an ampersand is the delimiter.&lt;/P&gt;</description>
    <pubDate>Sun, 27 Mar 2022 08:10:19 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-03-27T08:10:19Z</dc:date>
    <item>
      <title>keep required email address in observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/keep-required-email-address-in-observations/m-p/804335#M316733</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data email;
input email $30.;
datalines;
xxxxxxxxxxx@gmail.com
xxxxxxxxxxxx@outlook.com
xxxxxxxxxxx@gmail.com
xxxxxxxxxxx@gmail.com
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How to keep only required email address&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example here keep only gmail.com address&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 07:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/keep-required-email-address-in-observations/m-p/804335#M316733</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2022-03-27T07:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: keep required email address in observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/keep-required-email-address-in-observations/m-p/804336#M316734</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data email;
input email $30.;
email_provider = scan(email, 2, '@');
datalines;
xxxxxxxxxxx@gmail.com
xxxxxxxxxxxx@outlook.com
xxxxxxxxxxx@gmail.com
xxxxxxxxxxx@gmail.com
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There are many ways to do this including the SCAN function to read the second word in the string where an ampersand is the delimiter.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 08:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/keep-required-email-address-in-observations/m-p/804336#M316734</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-03-27T08:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: keep required email address in observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/keep-required-email-address-in-observations/m-p/804337#M316735</link>
      <description>&lt;P&gt;i want output those who have gmail email address in this example data contains three gmail address&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i want complete three gmail address&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 08:19:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/keep-required-email-address-in-observations/m-p/804337#M316735</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2022-03-27T08:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: keep required email address in observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/keep-required-email-address-in-observations/m-p/804341#M316739</link>
      <description>&lt;P&gt;Just use the SCAN function with "@" as delimiter to get the domain from the email address; if the result of the function is found to be "gmail.com", keep the observation. Can be done in a WHERE statement, WHERE= dataset option, or Subsetting IF, depending on where the subsetting needs to be done.&lt;/P&gt;
&lt;P&gt;I will not insult your intelligence by providing this&amp;nbsp;&lt;STRONG&gt;EXTREMELY SIMPLE&lt;/STRONG&gt; code. If you cannot solve such a simple issue by now (500+ posts here), then drop your illusion that you'll ever earn money with SAS work.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 10:09:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/keep-required-email-address-in-observations/m-p/804341#M316739</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-27T10:09:59Z</dc:date>
    </item>
  </channel>
</rss>

