<?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: Remove blank spaces from a Number in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Remove-blank-spaces-from-a-Number/m-p/601952#M174203</link>
    <description>&lt;P&gt;Is the variable actually numeric? Or is it character? I suspect the latter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
    Tel_No    = '14755 555 898';
    newTel_No = compress(Tel_No);
    put newTel_No=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;newTel_No=14755555898&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2019 12:16:31 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-11-06T12:16:31Z</dc:date>
    <item>
      <title>Remove blank spaces from a Number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-blank-spaces-from-a-Number/m-p/601950#M174201</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a variable (Tel_No) which is number of which has blank spaces such as 14755 555 898 or 01478 658458.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea how I remove the blanks from this please?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 12:12:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-blank-spaces-from-a-Number/m-p/601950#M174201</guid>
      <dc:creator>KC_16</dc:creator>
      <dc:date>2019-11-06T12:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Remove blank spaces from a Number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-blank-spaces-from-a-Number/m-p/601952#M174203</link>
      <description>&lt;P&gt;Is the variable actually numeric? Or is it character? I suspect the latter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
    Tel_No    = '14755 555 898';
    newTel_No = compress(Tel_No);
    put newTel_No=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;newTel_No=14755555898&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 12:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-blank-spaces-from-a-Number/m-p/601952#M174203</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-06T12:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Remove blank spaces from a Number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-blank-spaces-from-a-Number/m-p/601955#M174205</link>
      <description>&lt;P&gt;This is stored as character, as it should be. Telephone numbers are not used for calculations and can easily exceed SAS numeric precision.&lt;/P&gt;
&lt;P&gt;Use the compress() function to remove unwanted characters (e.g. blanks) from strings.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 12:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-blank-spaces-from-a-Number/m-p/601955#M174205</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-06T12:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove blank spaces from a Number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-blank-spaces-from-a-Number/m-p/602094#M174288</link>
      <description>&lt;P&gt;I once upon a time worked for company where we received lots of phone numbers for client contact. We had process that did what you request. Then had lots of "wrong number" or "why are you calling me, I've never had any contact with Company X". It turned out the process of "cleaning" the phone numbers by removing blanks had resulted in non-US country code values being combined with shorter than US phone numbers to create dialing strings that looked like they were in a US state.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you may want to determine what significance any of those spaces might have before removing them.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 18:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-blank-spaces-from-a-Number/m-p/602094#M174288</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-06T18:36:56Z</dc:date>
    </item>
  </channel>
</rss>

