<?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 Changing CHAR to NUM without scientific format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Changing-CHAR-to-NUM-without-scientific-format/m-p/478597#M123428</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a CHAR column that has numbers in them 13 digits in length, I want to convert these to numeric but when I try to do this using INPUT I get a numeric column displaying the scientific format. I don't want this how do I go about stopping this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I am currently using,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.ACCOUNT_NUMERIC as&lt;BR /&gt;SELECT *, INPUT (ACCOUNT, 16.) AS NUMERIC_ACCOUNT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am i doing wrong?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2018 10:25:29 GMT</pubDate>
    <dc:creator>Symun23</dc:creator>
    <dc:date>2018-07-17T10:25:29Z</dc:date>
    <item>
      <title>Changing CHAR to NUM without scientific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-CHAR-to-NUM-without-scientific-format/m-p/478597#M123428</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a CHAR column that has numbers in them 13 digits in length, I want to convert these to numeric but when I try to do this using INPUT I get a numeric column displaying the scientific format. I don't want this how do I go about stopping this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I am currently using,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.ACCOUNT_NUMERIC as&lt;BR /&gt;SELECT *, INPUT (ACCOUNT, 16.) AS NUMERIC_ACCOUNT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am i doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 10:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-CHAR-to-NUM-without-scientific-format/m-p/478597#M123428</guid>
      <dc:creator>Symun23</dc:creator>
      <dc:date>2018-07-17T10:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Changing CHAR to NUM without scientific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-CHAR-to-NUM-without-scientific-format/m-p/478602#M123430</link>
      <description>&lt;PRE&gt;
INPUT (ACCOUNT, best32.)

&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jul 2018 10:48:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-CHAR-to-NUM-without-scientific-format/m-p/478602#M123430</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-07-17T10:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing CHAR to NUM without scientific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-CHAR-to-NUM-without-scientific-format/m-p/478603#M123431</link>
      <description>&lt;P&gt;Nope that didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Account&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Account_Numeric&lt;/P&gt;&lt;P&gt;1100001866320&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.1000019E12&lt;BR /&gt;1100002875975&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.1000029E12&lt;BR /&gt;1100004528978&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.1000045E12&lt;BR /&gt;1100009131297&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.1000091E12&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This is a sample of the results I am getting&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 10:55:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-CHAR-to-NUM-without-scientific-format/m-p/478603#M123431</guid>
      <dc:creator>Symun23</dc:creator>
      <dc:date>2018-07-17T10:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Changing CHAR to NUM without scientific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-CHAR-to-NUM-without-scientific-format/m-p/478611#M123432</link>
      <description>&lt;P&gt;The problem is not the informat, but the format. If you give the number the format you want, that should solve it, e.g.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
CREATE TABLE WORK.ACCOUNT_NUMERIC as
SELECT *, INPUT (ACCOUNT, 16.) format=16.0 AS NUMERIC_ACCOUNT&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jul 2018 11:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-CHAR-to-NUM-without-scientific-format/m-p/478611#M123432</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2018-07-17T11:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Changing CHAR to NUM without scientific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-CHAR-to-NUM-without-scientific-format/m-p/478618#M123435</link>
      <description>Thanks s_lassen, worked a treat</description>
      <pubDate>Tue, 17 Jul 2018 11:41:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-CHAR-to-NUM-without-scientific-format/m-p/478618#M123435</guid>
      <dc:creator>Symun23</dc:creator>
      <dc:date>2018-07-17T11:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Changing CHAR to NUM without scientific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-CHAR-to-NUM-without-scientific-format/m-p/478688#M123468</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/221450"&gt;@Symun23&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Nope that didn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Account&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Account_Numeric&lt;/P&gt;
&lt;P&gt;1100001866320&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.1000019E12&lt;BR /&gt;1100002875975&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.1000029E12&lt;BR /&gt;1100004528978&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.1000045E12&lt;BR /&gt;1100009131297&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.1000091E12&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;This is a sample of the results I am getting&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you don't do arithmetic with something it likely should not be&amp;nbsp;numeric:&amp;nbsp;postal codes, phone numbers, account numbers, product numbers, and patient identifiers&amp;nbsp;&amp;nbsp;for example. Then the issue&amp;nbsp;should not&amp;nbsp;have occurred at all.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 15:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-CHAR-to-NUM-without-scientific-format/m-p/478688#M123468</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-17T15:17:13Z</dc:date>
    </item>
  </channel>
</rss>

