<?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 SAS code in checking a valid telephone number and email address in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-code-in-checking-a-valid-telephone-number-and-email-address/m-p/460366#M117010</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would like to check if there are any SAS intelligence in coding to check whether the phone number or an email in dataset is a valid one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the sharing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With sincere regards,&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;</description>
    <pubDate>Mon, 07 May 2018 08:08:44 GMT</pubDate>
    <dc:creator>nicolaskan</dc:creator>
    <dc:date>2018-05-07T08:08:44Z</dc:date>
    <item>
      <title>SAS code in checking a valid telephone number and email address</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-code-in-checking-a-valid-telephone-number-and-email-address/m-p/460366#M117010</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would like to check if there are any SAS intelligence in coding to check whether the phone number or an email in dataset is a valid one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the sharing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With sincere regards,&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 08:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-code-in-checking-a-valid-telephone-number-and-email-address/m-p/460366#M117010</guid>
      <dc:creator>nicolaskan</dc:creator>
      <dc:date>2018-05-07T08:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code in checking a valid telephone number and email address</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-code-in-checking-a-valid-telephone-number-and-email-address/m-p/460367#M117011</link>
      <description>&lt;P&gt;You have to be much more specific than that. What does "&lt;SPAN&gt;a valid one" mean? Show us some example data and explain what valid means in this context.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 08:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-code-in-checking-a-valid-telephone-number-and-email-address/m-p/460367#M117011</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-05-07T08:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code in checking a valid telephone number and email address</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-code-in-checking-a-valid-telephone-number-and-email-address/m-p/460372#M117012</link>
      <description>&lt;P&gt;There are ways to check the validity of an email, but they only work if the target server cooperates (which is often turned off to make spamming harder). So you are left with sending a email and checking for a response, which is best done through a proper email client.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 08:32:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-code-in-checking-a-valid-telephone-number-and-email-address/m-p/460372#M117012</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-07T08:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code in checking a valid telephone number and email address</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-code-in-checking-a-valid-telephone-number-and-email-address/m-p/460464#M117045</link>
      <description>&lt;P&gt;Phone number rules would be needed. And if you have multiple countries involved you may need additional rules for each. Such as determining international country codes as part of the numbers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likely bits may be looking for patterns of spaces, periods,&amp;nbsp;commas, dashes(of multiple characters such as (208) 123-4567 or 208-123-4567, 208.123.4567 and so on.&lt;/P&gt;
&lt;P&gt;If the original field is manually entered and there are not appropriate constraints you may have to find things like ext 123 (office extensions) and similar.&lt;/P&gt;
&lt;P&gt;Note that removing all non-numeric characters and then checking may be insufficient as international codes may make a number look like another source.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 15:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-code-in-checking-a-valid-telephone-number-and-email-address/m-p/460464#M117045</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-07T15:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code in checking a valid telephone number and email address</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-code-in-checking-a-valid-telephone-number-and-email-address/m-p/460671#M117118</link>
      <description>&lt;P&gt;For e-mail, using a regular expression similar to the one you have is probably best.&amp;nbsp; That validates the&amp;nbsp;&lt;STRONG&gt;form&lt;/STRONG&gt; of the e-mail address, not whether it's active (of course!).&amp;nbsp; If you use PRXPARSE to compile the pattern and then PRXMATCH to check for it, it should be pretty fast.&amp;nbsp; I have an example of &lt;A href="https://blogs.sas.com/content/sasdummy/2012/08/22/using-a-regular-expression-to-validate-a-sas-variable-name/" target="_self"&gt;that in this article about validating variable names&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;For phone numbers, check out this tip by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/56484"&gt;@Ron_Cody&lt;/a&gt;&amp;nbsp;about &lt;A href="https://blogs.sas.com/content/sastraining/2017/05/26/standardizing-phone-numbers-using-sas/" target="_self"&gt;standardizing phone numbers in your data&lt;/A&gt;.&amp;nbsp; You could standardize and QC the phone numbers in one pass through the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 12:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-code-in-checking-a-valid-telephone-number-and-email-address/m-p/460671#M117118</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-05-08T12:18:44Z</dc:date>
    </item>
  </channel>
</rss>

