<?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: format of numeric variable 30 digits long, no comma in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/format-of-numeric-variable-30-digits-long-no-comma/m-p/321579#M21513</link>
    <description>hmhmmm that is interesting. thanks</description>
    <pubDate>Thu, 29 Dec 2016 13:18:56 GMT</pubDate>
    <dc:creator>PhilipH</dc:creator>
    <dc:date>2016-12-29T13:18:56Z</dc:date>
    <item>
      <title>format of numeric variable 30 digits long, no comma</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/format-of-numeric-variable-30-digits-long-no-comma/m-p/321561#M21511</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I got a numeric variable extracted from the Oracle DB that is set to numeric 8.&lt;/P&gt;&lt;P&gt;But the variable should be able to store 30 digits not just 18 or 19.&lt;/P&gt;&lt;P&gt;What would be the correct format that I need to apply?&lt;/P&gt;&lt;P&gt;I looked around for input and COMMA but that just created decimals.&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 10:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/format-of-numeric-variable-30-digits-long-no-comma/m-p/321561#M21511</guid>
      <dc:creator>PhilipH</dc:creator>
      <dc:date>2016-12-29T10:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: format of numeric variable 30 digits long, no comma</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/format-of-numeric-variable-30-digits-long-no-comma/m-p/321578#M21512</link>
      <description>&lt;P&gt;Using SAS, you will have to bring in the field as character. &amp;nbsp;It's not a matter of finding a format (or an informat). &amp;nbsp;It's that SAS cannot accurately store numbers that large. &amp;nbsp;So even if you find a way to bring it in as numeric, SAS will change the value.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 13:14:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/format-of-numeric-variable-30-digits-long-no-comma/m-p/321578#M21512</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-12-29T13:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: format of numeric variable 30 digits long, no comma</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/format-of-numeric-variable-30-digits-long-no-comma/m-p/321579#M21513</link>
      <description>hmhmmm that is interesting. thanks</description>
      <pubDate>Thu, 29 Dec 2016 13:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/format-of-numeric-variable-30-digits-long-no-comma/m-p/321579#M21513</guid>
      <dc:creator>PhilipH</dc:creator>
      <dc:date>2016-12-29T13:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: format of numeric variable 30 digits long, no comma</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/format-of-numeric-variable-30-digits-long-no-comma/m-p/321580#M21514</link>
      <description>&lt;P&gt;Unlike Oracle SAS has only two data types: Character and Numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS a length of 8 for a numeric variable doesn't mean 8 digits but that SAS uses 8 Bytes to store the value. This allows to store numbers with full precision up to 15 digits.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only way to store more than 15 digits with full precision in SAS is to use a character variable - which is o.k. as long as you only use this data categorical and don't want to actually do calculations with it. Most of the time that's what such many digits are: Some ID or Account number or the like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The conversion to character needs to happen on the database side - a cast() function with Oracle. If you use the table with these numeric(n) datatypes often then consider to create a view in Oracle and implement the cast() there; else use SQL pass-through or use option dbsastype&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#n0v4ma1zb9lu99n1728j279rjcqi.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#n0v4ma1zb9lu99n1728j279rjcqi.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 13:20:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/format-of-numeric-variable-30-digits-long-no-comma/m-p/321580#M21514</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2016-12-29T13:20:22Z</dc:date>
    </item>
  </channel>
</rss>

