<?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: Enter country information based on email address in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Enter-country-information-based-on-email-address/m-p/682914#M206758</link>
    <description>&lt;P&gt;Dear Shmuel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for my delayed response. Thanks a lot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 32K data like this. I wanna add one column with country name based on domain of first email address. If domain is like .edu; .com etc then leave as empty.&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;TD&gt;Authors&lt;/TD&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Source&lt;/TD&gt;&lt;TD&gt;Language&lt;/TD&gt;&lt;TD&gt;Author Keywords&lt;/TD&gt;&lt;TD&gt;Email Addresses&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;J&lt;/TD&gt;&lt;TD&gt;Jo, S; Kim, S; Shin, DH; Kim, MS&lt;/TD&gt;&lt;TD&gt;Jo, Seri; Kim, Suwon; Shin, Dong Hae; Kim, Mi-Sun&lt;/TD&gt;&lt;TD&gt;JOURNAL OF ENZYME INHIBITION AND MEDICINAL CHEMISTRY&lt;/TD&gt;&lt;TD&gt;English&lt;/TD&gt;&lt;TD&gt;SARS-CoV; SARS-CoV 3CLpro; flavonoid; FRET; inhibitory compounds&lt;/TD&gt;&lt;TD&gt;dhshin55@ewha.ac.kr; shfwk31@ewha.ac.kr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;J&lt;/TD&gt;&lt;TD&gt;Beury, D; Flechon, L; Maurier, F; Caboche, S; Varre, JS; Touzet, H; Faure, K; Dubuisson, J; Hot, D; Guery, B; Goffard, A&lt;/TD&gt;&lt;TD&gt;Beury, Delphine; Flechon, Lea; Maurier, Florence; Caboche, Segolene; Varre, Jean-Stephane; Touzet, Helene; Faure, Karine; Dubuisson, Jean; Hot, David; Guery, Benoit; Goffard, Anne&lt;/TD&gt;&lt;TD&gt;JOURNAL OF CLINICAL VIROLOGY&lt;/TD&gt;&lt;TD&gt;English&lt;/TD&gt;&lt;TD&gt;Human coronavirus; Whole genome sequencing; Hematopoietic cell transplant; Care-associated infections; Phylogenetic analyses&lt;/TD&gt;&lt;TD&gt;delphine.beury@pasteur-lille.fr; lea.flechon.etu@univ-lille.fr; florence.maurier@pasteur-lille.fr; segolene.caboche@pasteur-lille.fr; jean-stephane.varre@lifl.fr; helene.touzet@lifl.fr; karine.faure@univ-lille.fr; jean.dubuisson@ibl.cnrs.fr; david.hot@pasteur-lille.fr; Benoit.Guery@unil.ch; anne.goffard@univ-lille.fr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;J&lt;/TD&gt;&lt;TD&gt;Checovich, MM; Barlow, S; Shult, P; Reisdorf, E; Temte, JL&lt;/TD&gt;&lt;TD&gt;Checovich, Mary M.; Barlow, Shari; Shult, Peter; Reisdorf, Erik; Temte, Jonathan L.&lt;/TD&gt;&lt;TD&gt;JOURNAL OF THE AMERICAN MEDICAL DIRECTORS ASSOCIATION&lt;/TD&gt;&lt;TD&gt;English&lt;/TD&gt;&lt;TD&gt;Long-term care; acute respiratory infection; rapid influenza diagnostic testing; influenza&lt;/TD&gt;&lt;TD&gt;mary.checovich@fammed.wisc.edu&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2020 12:05:40 GMT</pubDate>
    <dc:creator>Epid</dc:creator>
    <dc:date>2020-09-10T12:05:40Z</dc:date>
    <item>
      <title>Enter country information based on email address</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enter-country-information-based-on-email-address/m-p/681970#M206376</link>
      <description>&lt;P&gt;Dear SAS users,&lt;/P&gt;&lt;P&gt;I have a list 32K articles and want to have first author's country based on their domain of email information.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;email&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;Country&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;xxxx@lumc.nl&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;Netherlands&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;xxxx@hku.hk&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;Hong Kong&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Am I able to use any SAS&amp;nbsp; to have column "Country" from "email" column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your suggestions in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;BR,&lt;/P&gt;&lt;P&gt;Epi&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 08:23:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enter-country-information-based-on-email-address/m-p/681970#M206376</guid>
      <dc:creator>Epid</dc:creator>
      <dc:date>2020-09-07T08:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Enter country information based on email address</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enter-country-information-based-on-email-address/m-p/681975#M206379</link>
      <description>&lt;P&gt;Yes within some limits:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format lib=work;
    value $country
     'nl' = 'Netherland'
     'hk' = 'Hong Kong'
    ....
; run;
data want;
 set have;
       code = scan(email,-1,'.');
      country = putc(code,$country.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Pay attention that in some emails there may be no country code,&lt;/P&gt;
&lt;P&gt;as in &lt;A href="mailto:xxxxxx@gmail.com" target="_blank" rel="noopener"&gt;xxxxxx@gmail.com&lt;/A&gt;&amp;nbsp; &amp;nbsp;or &lt;A href="mailto:xxxxxx@yahoo.com" target="_blank" rel="noopener"&gt;xxxxxx@yahoo.com&lt;/A&gt;&amp;nbsp;etc.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 09:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enter-country-information-based-on-email-address/m-p/681975#M206379</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-09-07T09:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Enter country information based on email address</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enter-country-information-based-on-email-address/m-p/681984#M206383</link>
      <description>&lt;P&gt;Thanks Shmuel, So, I have to list all countries like 'nl'='Netherlands'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What if there are more than one email addresses in one cell? I only need to use the first email address. Please advise me how I can deal in that case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Epi&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 09:34:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enter-country-information-based-on-email-address/m-p/681984#M206383</guid>
      <dc:creator>Epid</dc:creator>
      <dc:date>2020-09-07T09:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Enter country information based on email address</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enter-country-information-based-on-email-address/m-p/681988#M206385</link>
      <description>&lt;P&gt;1) Create the format with as many countries as you can&amp;nbsp;add a line with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format lib=work;
    value $country
     'nl' = 'Netherland'
     'hk' = 'Hong Kong'
    ....
    other = "*unKnown*"   /* choose any text you prefer */
; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2) In case there are more than one email, you need to select which is preferred or add a country per email (email1-country1&amp;nbsp; email2-country2 ...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you post a sample of your data in a form of a data step with input from datalines. I'll be able&lt;/P&gt;
&lt;P&gt;to propose some available code to deal with.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 13:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enter-country-information-based-on-email-address/m-p/681988#M206385</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-09-07T13:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Enter country information based on email address</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enter-country-information-based-on-email-address/m-p/681990#M206387</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/254188"&gt;@Epid&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks Shmuel, So, I have to list all countries like 'nl'='Netherlands'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What if there are more than one email addresses in one cell? I only need to use the first email address. Please advise me how I can deal in that case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;Epi&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am sure that icann (or maybe mozilla) has a usable list that you can import and use to create the format.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 10:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enter-country-information-based-on-email-address/m-p/681990#M206387</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-09-07T10:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Enter country information based on email address</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enter-country-information-based-on-email-address/m-p/682914#M206758</link>
      <description>&lt;P&gt;Dear Shmuel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for my delayed response. Thanks a lot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 32K data like this. I wanna add one column with country name based on domain of first email address. If domain is like .edu; .com etc then leave as empty.&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;TD&gt;Authors&lt;/TD&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Source&lt;/TD&gt;&lt;TD&gt;Language&lt;/TD&gt;&lt;TD&gt;Author Keywords&lt;/TD&gt;&lt;TD&gt;Email Addresses&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;J&lt;/TD&gt;&lt;TD&gt;Jo, S; Kim, S; Shin, DH; Kim, MS&lt;/TD&gt;&lt;TD&gt;Jo, Seri; Kim, Suwon; Shin, Dong Hae; Kim, Mi-Sun&lt;/TD&gt;&lt;TD&gt;JOURNAL OF ENZYME INHIBITION AND MEDICINAL CHEMISTRY&lt;/TD&gt;&lt;TD&gt;English&lt;/TD&gt;&lt;TD&gt;SARS-CoV; SARS-CoV 3CLpro; flavonoid; FRET; inhibitory compounds&lt;/TD&gt;&lt;TD&gt;dhshin55@ewha.ac.kr; shfwk31@ewha.ac.kr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;J&lt;/TD&gt;&lt;TD&gt;Beury, D; Flechon, L; Maurier, F; Caboche, S; Varre, JS; Touzet, H; Faure, K; Dubuisson, J; Hot, D; Guery, B; Goffard, A&lt;/TD&gt;&lt;TD&gt;Beury, Delphine; Flechon, Lea; Maurier, Florence; Caboche, Segolene; Varre, Jean-Stephane; Touzet, Helene; Faure, Karine; Dubuisson, Jean; Hot, David; Guery, Benoit; Goffard, Anne&lt;/TD&gt;&lt;TD&gt;JOURNAL OF CLINICAL VIROLOGY&lt;/TD&gt;&lt;TD&gt;English&lt;/TD&gt;&lt;TD&gt;Human coronavirus; Whole genome sequencing; Hematopoietic cell transplant; Care-associated infections; Phylogenetic analyses&lt;/TD&gt;&lt;TD&gt;delphine.beury@pasteur-lille.fr; lea.flechon.etu@univ-lille.fr; florence.maurier@pasteur-lille.fr; segolene.caboche@pasteur-lille.fr; jean-stephane.varre@lifl.fr; helene.touzet@lifl.fr; karine.faure@univ-lille.fr; jean.dubuisson@ibl.cnrs.fr; david.hot@pasteur-lille.fr; Benoit.Guery@unil.ch; anne.goffard@univ-lille.fr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;J&lt;/TD&gt;&lt;TD&gt;Checovich, MM; Barlow, S; Shult, P; Reisdorf, E; Temte, JL&lt;/TD&gt;&lt;TD&gt;Checovich, Mary M.; Barlow, Shari; Shult, Peter; Reisdorf, Erik; Temte, Jonathan L.&lt;/TD&gt;&lt;TD&gt;JOURNAL OF THE AMERICAN MEDICAL DIRECTORS ASSOCIATION&lt;/TD&gt;&lt;TD&gt;English&lt;/TD&gt;&lt;TD&gt;Long-term care; acute respiratory infection; rapid influenza diagnostic testing; influenza&lt;/TD&gt;&lt;TD&gt;mary.checovich@fammed.wisc.edu&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 12:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enter-country-information-based-on-email-address/m-p/682914#M206758</guid>
      <dc:creator>Epid</dc:creator>
      <dc:date>2020-09-10T12:05:40Z</dc:date>
    </item>
  </channel>
</rss>

