<?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: How to remove commas and dots from numerics in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-commas-and-dots-from-numerics/m-p/648687#M194372</link>
    <description>&lt;P&gt;What is the origin of your data? is it excel or any other external file or data base?&lt;/P&gt;
&lt;P&gt;How do you import that file into sas?&lt;/P&gt;
&lt;P&gt;I believe that the issue is the result of method importing the data to sas.&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2020 20:21:05 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2020-05-18T20:21:05Z</dc:date>
    <item>
      <title>How to remove commas and dots from numerics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-commas-and-dots-from-numerics/m-p/648680#M194366</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;During analyzing financial data I came across a huge difficulty.&amp;nbsp; Variable "total salary" looks like this:&lt;/P&gt;&lt;P&gt;75,879.00 or 123,679.00 or 7,987.00. Do you know how to delete commas and periods? They occure in different places.&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 19:51:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-commas-and-dots-from-numerics/m-p/648680#M194366</guid>
      <dc:creator>sasowiczka123</dc:creator>
      <dc:date>2020-05-18T19:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove commas and dots from numerics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-commas-and-dots-from-numerics/m-p/648683#M194368</link>
      <description>&lt;P&gt;If you want the numbers to display differently, assign another format. But mind that the display format does not influence any calculations.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 20:00:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-commas-and-dots-from-numerics/m-p/648683#M194368</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-18T20:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove commas and dots from numerics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-commas-and-dots-from-numerics/m-p/648684#M194369</link>
      <description>What is the type and format applied on that variable? Is this after you've imported the data or something you're trying to do after you've imported the data?</description>
      <pubDate>Mon, 18 May 2020 20:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-commas-and-dots-from-numerics/m-p/648684#M194369</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-05-18T20:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove commas and dots from numerics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-commas-and-dots-from-numerics/m-p/648686#M194371</link>
      <description>&lt;P&gt;Please describe what you are doing that the presence of either the comma or the decimal affects your analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also want to run proc contents on that data set and share the variable type and format currently associated with the variable.&lt;/P&gt;
&lt;P&gt;I suspect that the current format is some form of CommaW.D. The presence of the commas or decimals are very unlikely to have any impact on analysis though possible will have an effect on some reports.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 20:14:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-commas-and-dots-from-numerics/m-p/648686#M194371</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-05-18T20:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove commas and dots from numerics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-commas-and-dots-from-numerics/m-p/648687#M194372</link>
      <description>&lt;P&gt;What is the origin of your data? is it excel or any other external file or data base?&lt;/P&gt;
&lt;P&gt;How do you import that file into sas?&lt;/P&gt;
&lt;P&gt;I believe that the issue is the result of method importing the data to sas.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 20:21:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-commas-and-dots-from-numerics/m-p/648687#M194372</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-05-18T20:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove commas and dots from numerics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-commas-and-dots-from-numerics/m-p/648689#M194373</link>
      <description>&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;What is the variable type? Numeric that is formatted to display such or a character variable containing the above strings? Don't think you want to remove the period without also removing the zeroes that follow. Otherwise, it affects the value.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;If it is a numeric variable type you can clear the format with:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;format &amp;lt;variable&amp;gt; ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;If it is character, you can compress the comma out. I don't think you should delete the period as it would change the value. Here is a small demo:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource" style="color: #000000; font-family: Consolas,Courier,&amp;amp;quot; courier new&amp;amp;quot;; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;900&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data _null_ ;&lt;/DIV&gt;
&lt;DIV class="sasSource" style="color: #000000; font-family: Consolas,Courier,&amp;amp;quot; courier new&amp;amp;quot;; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;901&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = "123,679.00" ;&lt;/DIV&gt;
&lt;DIV class="sasSource" style="color: #000000; font-family: Consolas,Courier,&amp;amp;quot; courier new&amp;amp;quot;; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;902&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = compress(scan(x,1,".")) ;&lt;/DIV&gt;
&lt;DIV class="sasSource" style="color: #000000; font-family: Consolas,Courier,&amp;amp;quot; courier new&amp;amp;quot;; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;903&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put x = y = ;&lt;/DIV&gt;
&lt;DIV class="sasSource" style="color: #000000; font-family: Consolas,Courier,&amp;amp;quot; courier new&amp;amp;quot;; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;904&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run ;&lt;/DIV&gt;
&lt;DIV class="sasNote" style="color: blue; font-family: Consolas,Courier,&amp;amp;quot; courier new&amp;amp;quot;; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource" style="color: #000000; font-family: Consolas,Courier,&amp;amp;quot; courier new&amp;amp;quot;; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;x=123,679.00 y=123,679&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 20:33:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-commas-and-dots-from-numerics/m-p/648689#M194373</guid>
      <dc:creator>biopharma</dc:creator>
      <dc:date>2020-05-18T20:33:35Z</dc:date>
    </item>
  </channel>
</rss>

