<?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 Export to Excel in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel/m-p/61153#M17351</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Would like to ask how the export to Excel functionality in SAS Base works? I have a table that contains a numeric field with NLNUM25.2 format and was populated by a DI job. I tried exporting this table to Excel using the Export function in the File menu of SAS Base. When I opened the Excel file, the value was 0.94000000000002328, however, in the dataset it's corresponding value is 0.94. The strange part is, when the query was done in SAS Base using the same condition and format, the output it produced when exported to Excel was 0.939999999999497. &lt;BR /&gt;
&lt;BR /&gt;
Howcome the two values produced different output in Excel, considering that they have the same formatted value, which is 0.94 in their respective datasets?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance!</description>
    <pubDate>Tue, 03 May 2011 13:33:28 GMT</pubDate>
    <dc:creator>louise</dc:creator>
    <dc:date>2011-05-03T13:33:28Z</dc:date>
    <item>
      <title>Export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel/m-p/61153#M17351</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Would like to ask how the export to Excel functionality in SAS Base works? I have a table that contains a numeric field with NLNUM25.2 format and was populated by a DI job. I tried exporting this table to Excel using the Export function in the File menu of SAS Base. When I opened the Excel file, the value was 0.94000000000002328, however, in the dataset it's corresponding value is 0.94. The strange part is, when the query was done in SAS Base using the same condition and format, the output it produced when exported to Excel was 0.939999999999497. &lt;BR /&gt;
&lt;BR /&gt;
Howcome the two values produced different output in Excel, considering that they have the same formatted value, which is 0.94 in their respective datasets?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance!</description>
      <pubDate>Tue, 03 May 2011 13:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel/m-p/61153#M17351</guid>
      <dc:creator>louise</dc:creator>
      <dc:date>2011-05-03T13:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel/m-p/61154#M17352</link>
      <description>The underlying reason is that data are stored in binary and the displayed version is a decimal approximation of the data.  SAS can represent integers (within a certain size) exactly, but not decimal numbers.  There is a lot of information on what is done in the SAS documentation.  Search on &lt;DECIMAL representation=""&gt;.  One in particular&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts230.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts230.html&lt;/A&gt;&lt;BR /&gt;
might help.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke&lt;/DECIMAL&gt;</description>
      <pubDate>Tue, 03 May 2011 14:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel/m-p/61154#M17352</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-05-03T14:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel/m-p/61155#M17353</link>
      <description>Thank you for this information, Duke!</description>
      <pubDate>Wed, 04 May 2011 00:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel/m-p/61155#M17353</guid>
      <dc:creator>louise</dc:creator>
      <dc:date>2011-05-04T00:40:25Z</dc:date>
    </item>
  </channel>
</rss>

