<?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 Convert characters to numeric in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-characters-to-numeric/m-p/391135#M93894</link>
    <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;I am trying to convert a Character value ($9.) to Numeric. As an example In sas table my Character value looks like $400.00. In my output table all I am seeing under the new column (numeric_var) is a (.)&lt;/P&gt;
&lt;P&gt;Can someone help he with the code please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA Apple.Financial_Report11;
SET Apple.Financial_Report;
numeric_var = input(old_Var, 9.);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Aug 2017 17:56:17 GMT</pubDate>
    <dc:creator>mlogan</dc:creator>
    <dc:date>2017-08-27T17:56:17Z</dc:date>
    <item>
      <title>Convert characters to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-characters-to-numeric/m-p/391135#M93894</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;I am trying to convert a Character value ($9.) to Numeric. As an example In sas table my Character value looks like $400.00. In my output table all I am seeing under the new column (numeric_var) is a (.)&lt;/P&gt;
&lt;P&gt;Can someone help he with the code please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA Apple.Financial_Report11;
SET Apple.Financial_Report;
numeric_var = input(old_Var, 9.);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2017 17:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-characters-to-numeric/m-p/391135#M93894</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2017-08-27T17:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert characters to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-characters-to-numeric/m-p/391138#M93896</link>
      <description>Try the informat of dollar9.&lt;BR /&gt;The informat should reflect what the variable currently looks like and apply a format to show how you want it displayed.</description>
      <pubDate>Sun, 27 Aug 2017 18:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-characters-to-numeric/m-p/391138#M93896</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-27T18:01:43Z</dc:date>
    </item>
  </channel>
</rss>

