<?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 Reading Excel file with large decimal Places in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-Excel-file-with-large-decimal-Places/m-p/315172#M21270</link>
    <description>&lt;P&gt;Hi All ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I am trying to read an excel file into SAS with character variables having more than 10 decimal places and some of the cells has exponential values like&amp;nbsp;4.658535495689E-2, but after the excel is read i can see the decimal values in dataset only till 6 or 7th position only, but i want the complete decimal value to be displayed in the SAS dataset.There is no issue with the Length also, as some of the values are getting read completely ,but not all. Any options/methods to read the complete decimal values. Tried with inflie , libname statement also but could not retrieve all the decimal values from excel.&lt;/P&gt;
&lt;P&gt;Some of the values present in excel are as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;24.550898203592801&lt;BR /&gt;22.793831799922199&lt;BR /&gt;13.495276653171301&lt;BR /&gt;4.658535495689E-2&lt;BR /&gt;4.116260242164E-2&lt;BR /&gt;7.1999999999999995E-2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the sample code used to retrieved.&lt;/P&gt;
&lt;P&gt;proc import datafile="&amp;amp;path/&amp;amp;fname.xlsx"&lt;BR /&gt; dbms = xlsx out= data_ replace;&lt;BR /&gt; datarow=1;&lt;BR /&gt; getnames = yes;&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions how to retrieve the complete decimal values from excel to SAS dataset.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2016 13:02:52 GMT</pubDate>
    <dc:creator>keen_sas</dc:creator>
    <dc:date>2016-11-29T13:02:52Z</dc:date>
    <item>
      <title>Reading Excel file with large decimal Places</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-Excel-file-with-large-decimal-Places/m-p/315172#M21270</link>
      <description>&lt;P&gt;Hi All ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I am trying to read an excel file into SAS with character variables having more than 10 decimal places and some of the cells has exponential values like&amp;nbsp;4.658535495689E-2, but after the excel is read i can see the decimal values in dataset only till 6 or 7th position only, but i want the complete decimal value to be displayed in the SAS dataset.There is no issue with the Length also, as some of the values are getting read completely ,but not all. Any options/methods to read the complete decimal values. Tried with inflie , libname statement also but could not retrieve all the decimal values from excel.&lt;/P&gt;
&lt;P&gt;Some of the values present in excel are as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;24.550898203592801&lt;BR /&gt;22.793831799922199&lt;BR /&gt;13.495276653171301&lt;BR /&gt;4.658535495689E-2&lt;BR /&gt;4.116260242164E-2&lt;BR /&gt;7.1999999999999995E-2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the sample code used to retrieved.&lt;/P&gt;
&lt;P&gt;proc import datafile="&amp;amp;path/&amp;amp;fname.xlsx"&lt;BR /&gt; dbms = xlsx out= data_ replace;&lt;BR /&gt; datarow=1;&lt;BR /&gt; getnames = yes;&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions how to retrieve the complete decimal values from excel to SAS dataset.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 13:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-Excel-file-with-large-decimal-Places/m-p/315172#M21270</guid>
      <dc:creator>keen_sas</dc:creator>
      <dc:date>2016-11-29T13:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Excel file with large decimal Places</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-Excel-file-with-large-decimal-Places/m-p/315173#M21271</link>
      <description>&lt;P&gt;Be aware that SAS works with 8-byte real numbers, which means that the precision is restricted to around 15 decimal digits.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assign a long enough format like best32. so you can see all digits present in SAS.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 13:06:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-Excel-file-with-large-decimal-Places/m-p/315173#M21271</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-29T13:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Excel file with large decimal Places</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-Excel-file-with-large-decimal-Places/m-p/315193#M21276</link>
      <description>&lt;P&gt;Run Proc Contents on the resulting data set to see the format. Likely&amp;nbsp; it will be BEST8. The values are likely therr, barring more than 15 decimals just not displaying. If you really care to see that many decimals change the formats to something you preferr like BEST32. of F24.16 or such.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 14:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-Excel-file-with-large-decimal-Places/m-p/315193#M21276</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-11-29T14:48:50Z</dc:date>
    </item>
  </channel>
</rss>

