<?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: character to numeric in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/character-to-numeric/m-p/7634#M141</link>
    <description>This worked great. Thank you.&lt;BR /&gt;
&lt;BR /&gt;
~ Max</description>
    <pubDate>Tue, 25 Mar 2008 10:59:24 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-03-25T10:59:24Z</dc:date>
    <item>
      <title>character to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-to-numeric/m-p/7632#M139</link>
      <description>I have some data that I cannot clean appropriately. I have read in some data that contains single quotes in variables that I want as numeric. I have tried to create a new variable by multiplyingh the old variable by 1 and also using the input function of creating a new variable, but the new variable always has a missing value. &lt;BR /&gt;
&lt;BR /&gt;
Below is the error I get.&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Invalid numeric data, '44,178.67' , at line 640 column 9</description>
      <pubDate>Mon, 24 Mar 2008 19:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-to-numeric/m-p/7632#M139</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-03-24T19:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: character to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-to-numeric/m-p/7633#M140</link>
      <description>Just use this:&lt;BR /&gt;
&lt;BR /&gt;
B=INPUT(COMPRESS(A,'0123456789.','k'),8.);&lt;BR /&gt;
&lt;BR /&gt;
where A is your dirty data and B will be your clean numerical one.&lt;BR /&gt;
&lt;BR /&gt;
Ike Eisenhauer

Message was edited by: WDEisenhauer</description>
      <pubDate>Mon, 24 Mar 2008 21:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-to-numeric/m-p/7633#M140</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-03-24T21:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: character to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-to-numeric/m-p/7634#M141</link>
      <description>This worked great. Thank you.&lt;BR /&gt;
&lt;BR /&gt;
~ Max</description>
      <pubDate>Tue, 25 Mar 2008 10:59:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-to-numeric/m-p/7634#M141</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-03-25T10:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: character to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-to-numeric/m-p/7635#M142</link>
      <description>This is a superb solution to a problem I have.  I wanted to keep any numeric values in a field but eliminate the characters.  This was perfect for that situation.</description>
      <pubDate>Tue, 19 May 2009 19:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-to-numeric/m-p/7635#M142</guid>
      <dc:creator>Bulgani</dc:creator>
      <dc:date>2009-05-19T19:28:18Z</dc:date>
    </item>
  </channel>
</rss>

