<?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 Importing xlsx file without scientific notation in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Importing-xlsx-file-without-scientific-notation/m-p/212421#M52453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following xlsx file:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 798px; height: 95px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Process_instance&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1111&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2015/01/01&amp;nbsp; 12:09:00 AM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1049330054220024321&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2222&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2015/01/01&amp;nbsp; 12:15:43 AM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2139335044321124229&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3333&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2015/01/03&amp;nbsp; 10:12:40 AM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;7839320104333478310&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where process_instance is an unique id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to import this xlsx file into SAS then it converts it into scientific notation:&lt;/P&gt;&lt;P&gt;1.049330054220024E+18&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2.139335044321124E+18&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;7.839320104333478&lt;SPAN style="font-size: 13.3333330154419px;"&gt;E+18 respectively and converts it to $22. format.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Is there a way to import the xlsx file and keeping the long format ? That is, keeping it as numeric and showing the whole &lt;SPAN style="font-size: 13.3333330154419px;"&gt;1049330054220024321.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thank you !&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2015 09:34:55 GMT</pubDate>
    <dc:creator>mjheever</dc:creator>
    <dc:date>2015-07-28T09:34:55Z</dc:date>
    <item>
      <title>Importing xlsx file without scientific notation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-xlsx-file-without-scientific-notation/m-p/212421#M52453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following xlsx file:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 798px; height: 95px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Process_instance&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1111&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2015/01/01&amp;nbsp; 12:09:00 AM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1049330054220024321&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2222&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2015/01/01&amp;nbsp; 12:15:43 AM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2139335044321124229&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3333&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2015/01/03&amp;nbsp; 10:12:40 AM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;7839320104333478310&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where process_instance is an unique id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to import this xlsx file into SAS then it converts it into scientific notation:&lt;/P&gt;&lt;P&gt;1.049330054220024E+18&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2.139335044321124E+18&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;7.839320104333478&lt;SPAN style="font-size: 13.3333330154419px;"&gt;E+18 respectively and converts it to $22. format.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Is there a way to import the xlsx file and keeping the long format ? That is, keeping it as numeric and showing the whole &lt;SPAN style="font-size: 13.3333330154419px;"&gt;1049330054220024321.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thank you !&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 09:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-xlsx-file-without-scientific-notation/m-p/212421#M52453</guid>
      <dc:creator>mjheever</dc:creator>
      <dc:date>2015-07-28T09:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Importing xlsx file without scientific notation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-xlsx-file-without-scientific-notation/m-p/212422#M52454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another good example of why not to use Excel or pro import.&amp;nbsp; Save the data from Excel in a proper data transfer format - CSV, XML etc.&amp;nbsp; Then write a datastep import which reads the CSV file and tells SAS what the columns should be read in as.&amp;nbsp; Currently your letting proc import guess what you want to do.&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; informat process_instance 18.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file "xyz.csv";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input id date $ process_instance;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Or similar to that.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 10:07:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-xlsx-file-without-scientific-notation/m-p/212422#M52454</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-07-28T10:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Importing xlsx file without scientific notation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-xlsx-file-without-scientific-notation/m-p/212423#M52455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NO.&amp;nbsp; &lt;/P&gt;&lt;P&gt;You cannot store that many significant digits in an 8 byte IEEE floating point number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;45&amp;nbsp;&amp;nbsp;&amp;nbsp; data x ;&lt;/P&gt;&lt;P&gt;46&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=1049330054220024321 ;&lt;/P&gt;&lt;P&gt;47&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put a comma32. ;&lt;/P&gt;&lt;P&gt;48&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,049,330,054,220,024,320&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I doubt that you are going to take the means of the process id, so store it as a character string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 10:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-xlsx-file-without-scientific-notation/m-p/212423#M52455</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-07-28T10:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Importing xlsx file without scientific notation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-xlsx-file-without-scientific-notation/m-p/212424#M52456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add an option&amp;nbsp;&amp;nbsp; MIXED=YES&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 12:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-xlsx-file-without-scientific-notation/m-p/212424#M52456</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-07-28T12:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Importing xlsx file without scientific notation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-xlsx-file-without-scientific-notation/m-p/212425#M52457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@RW9 your solution seems to work the best in my opinion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saved the xlsx Excel file in csv format and imported the file from there:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;proc import datafile="C\Dir\filename.csv"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out=Want&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms=csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; getnames=no;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It puts all the fields in string/character format without any alterations, so it is easy to take it from there and edit the variable formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you once again &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 08:33:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-xlsx-file-without-scientific-notation/m-p/212425#M52457</guid>
      <dc:creator>mjheever</dc:creator>
      <dc:date>2015-07-29T08:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Importing xlsx file without scientific notation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-xlsx-file-without-scientific-notation/m-p/286489#M59502</link>
      <description>&lt;P&gt;Not work....sad...&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 21:35:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-xlsx-file-without-scientific-notation/m-p/286489#M59502</guid>
      <dc:creator>xiao</dc:creator>
      <dc:date>2016-07-22T21:35:26Z</dc:date>
    </item>
  </channel>
</rss>

