<?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: Preserved numerical value when exporting to xls in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Preserved-numerical-value-when-exporting-to-xls/m-p/407564#M279424</link>
    <description>&lt;P&gt;Because of the 8-byte real format that SAS uses for storing numeric data, the precision is limited to ~15 decimal digits. What you see is normal behaviour for data in SAS datasets.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2017 07:30:16 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-10-26T07:30:16Z</dc:date>
    <item>
      <title>Preserved numerical value when exporting to xls</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Preserved-numerical-value-when-exporting-to-xls/m-p/407561#M279423</link>
      <description>&lt;P&gt;Hi Experts&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need some help please , I am trying to export numerical data to excel /xslb.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried to format the field with BEST/NUMX with no luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The numerical data is standard 16 digits e.g 1111222233334444.&lt;/P&gt;
&lt;P&gt;when I export using the below export code :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc export outfile="Location\&amp;amp;TEST_NO._&amp;amp;TRIM_FROM._to_&amp;amp;TRIM_TO._&amp;amp;NOW..xlsb" &lt;BR /&gt; dbms=excelcs data = SDR_TXSET replace; &lt;BR /&gt;sheet="DATA"; &lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when I open the excel sheet the data displays like : 1,2226543+13 &amp;amp; when I expand and format the cell the data displays like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;e.g 111122223334440 . which is incorrect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 07:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Preserved-numerical-value-when-exporting-to-xls/m-p/407561#M279423</guid>
      <dc:creator>EMC9</dc:creator>
      <dc:date>2017-10-26T07:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Preserved numerical value when exporting to xls</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Preserved-numerical-value-when-exporting-to-xls/m-p/407564#M279424</link>
      <description>&lt;P&gt;Because of the 8-byte real format that SAS uses for storing numeric data, the precision is limited to ~15 decimal digits. What you see is normal behaviour for data in SAS datasets.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 07:30:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Preserved-numerical-value-when-exporting-to-xls/m-p/407564#M279424</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-26T07:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Preserved numerical value when exporting to xls</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Preserved-numerical-value-when-exporting-to-xls/m-p/407566#M279425</link>
      <description>&lt;P&gt;Thank you for the reply - is there any way around this ? diff method ?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 07:35:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Preserved-numerical-value-when-exporting-to-xls/m-p/407566#M279425</guid>
      <dc:creator>EMC9</dc:creator>
      <dc:date>2017-10-26T07:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Preserved numerical value when exporting to xls</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Preserved-numerical-value-when-exporting-to-xls/m-p/407630#M279426</link>
      <description>&lt;P&gt;Since precision like that is not needed for statistics (the range of exponents in the real format is sufficient for either very large or very small values), this is usually no problem. Very often such large numbers are identification codes or such, and are therefore stored as character.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 13:16:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Preserved-numerical-value-when-exporting-to-xls/m-p/407630#M279426</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-26T13:16:10Z</dc:date>
    </item>
  </channel>
</rss>

