<?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: Converting char with $ to Numeric in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Converting-char-with-to-Numeric/m-p/388226#M5825</link>
    <description>&lt;P&gt;The code you have shown is but a piece of a SAS statement.&amp;nbsp; So I have to assume that the context in which you are using it is correct.&amp;nbsp; This would be the replacement code for a variable that is defined as character with a length of 20:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sum(input(dollar_value, dollar20.))&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2017 17:26:11 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-08-15T17:26:11Z</dc:date>
    <item>
      <title>Converting char with $ to Numeric</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Converting-char-with-to-Numeric/m-p/388219#M5824</link>
      <description>&lt;P&gt;Hi, I am trying to sum a text field that has currency values with a $ in front ($1,109.23 for example).&amp;nbsp; I am using the code below but am getting nulls returned.&amp;nbsp; Any way I can do this?&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(input(substr(dollar_value,2,length(dollar_value)-1),20.))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 17:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Converting-char-with-to-Numeric/m-p/388219#M5824</guid>
      <dc:creator>bryan22</dc:creator>
      <dc:date>2017-08-15T17:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Converting char with $ to Numeric</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Converting-char-with-to-Numeric/m-p/388226#M5825</link>
      <description>&lt;P&gt;The code you have shown is but a piece of a SAS statement.&amp;nbsp; So I have to assume that the context in which you are using it is correct.&amp;nbsp; This would be the replacement code for a variable that is defined as character with a length of 20:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sum(input(dollar_value, dollar20.))&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 17:26:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Converting-char-with-to-Numeric/m-p/388226#M5825</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-08-15T17:26:11Z</dc:date>
    </item>
  </channel>
</rss>

