<?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: Identify phone numbers with all the same digits in one phone number in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Identify-phone-numbers-with-all-the-same-digits-in-one-phone/m-p/811749#M320212</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52727"&gt;@lizzy28&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you can use character functions. For example, the criterion&lt;/P&gt;
&lt;PRE&gt;compress(t,first(t))=' '&lt;/PRE&gt;
&lt;P&gt;should work for non-empty digit strings &lt;FONT face="courier new,courier"&gt;t&lt;/FONT&gt; (without hyphens, parentheses, leading blanks, etc.).&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2022 20:23:32 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2022-05-05T20:23:32Z</dc:date>
    <item>
      <title>Identify phone numbers with all the same digits in one phone number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-phone-numbers-with-all-the-same-digits-in-one-phone/m-p/811738#M320201</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to identify phone numbers with all the same digits in one phone number? For example, the phone numbers like 1111111111, 5555555555, 9999999999.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;
&lt;P&gt;Lizzy&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 19:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-phone-numbers-with-all-the-same-digits-in-one-phone/m-p/811738#M320201</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2022-05-05T19:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Identify phone numbers with all the same digits in one phone number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-phone-numbers-with-all-the-same-digits-in-one-phone/m-p/811743#M320206</link>
      <description>&lt;P&gt;Step 1: turn the phone number into a sequence of ten numeric (not character) single digit values.&lt;/P&gt;
&lt;P&gt;Step 2: determine the min and max of these 10 single digit values, if the min=max then you have all the same digits&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
    phone_number='1111111111';
    array digit digit1-digit10;
    do i=1 to 10;
        digit(i)=input(substr(phone_number,i,1),1.);
    end;
    delta=max(of digit(*))-min(of digit(*));
    drop i;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 19:45:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-phone-numbers-with-all-the-same-digits-in-one-phone/m-p/811743#M320206</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-05-05T19:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Identify phone numbers with all the same digits in one phone number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-phone-numbers-with-all-the-same-digits-in-one-phone/m-p/811749#M320212</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52727"&gt;@lizzy28&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you can use character functions. For example, the criterion&lt;/P&gt;
&lt;PRE&gt;compress(t,first(t))=' '&lt;/PRE&gt;
&lt;P&gt;should work for non-empty digit strings &lt;FONT face="courier new,courier"&gt;t&lt;/FONT&gt; (without hyphens, parentheses, leading blanks, etc.).&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 20:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-phone-numbers-with-all-the-same-digits-in-one-phone/m-p/811749#M320212</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-05-05T20:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Identify phone numbers with all the same digits in one phone number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-phone-numbers-with-all-the-same-digits-in-one-phone/m-p/811751#M320213</link>
      <description>&lt;P&gt;If it's a 10 digit number then&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if mod(phone_number,1111111111)=0 then flag=1;
else&amp;nbsp;flag=0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 May 2022 23:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-phone-numbers-with-all-the-same-digits-in-one-phone/m-p/811751#M320213</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-05-05T23:12:39Z</dc:date>
    </item>
  </channel>
</rss>

