<?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: SAS unable to read long value numeric( displaying as exponential) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-unable-to-read-long-value-numeric-displaying-as-exponential/m-p/273438#M54486</link>
    <description>&lt;P&gt;Good to see you've got a solution, but you shouldn't have to do it in code. If changing the column to text in Excel doesn't work then use the Text to Columns feature by highlighting the ID column then select the&amp;nbsp;&lt;SPAN&gt;Text to Columns option on the Data menu.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2016 23:00:16 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2016-05-26T23:00:16Z</dc:date>
    <item>
      <title>SAS unable to read long value numeric( displaying as exponential)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-unable-to-read-long-value-numeric-displaying-as-exponential/m-p/273396#M54477</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to import an excel(.xls,.xlsx,csv) one of the columns has more than 20 length long values, and after the import the data is displayed as&lt;/P&gt;&lt;P&gt;&lt;U&gt;Values on the Excel:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;100000000882336&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Displayed value:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;1E14&lt;BR /&gt;1.0000001E14&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you please suggest?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 20:55:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-unable-to-read-long-value-numeric-displaying-as-exponential/m-p/273396#M54477</guid>
      <dc:creator>santosh_pat69</dc:creator>
      <dc:date>2016-05-26T20:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS unable to read long value numeric( displaying as exponential)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-unable-to-read-long-value-numeric-displaying-as-exponential/m-p/273406#M54479</link>
      <description>&lt;P&gt;Common discussion related to computer precision and storage and display&amp;nbsp;of values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are these values actually numbers used in arithemetic or something like account numbers? If the later then import them to character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The variable has a format which may currently be BEST12. which is the default for some things.&amp;nbsp;You may try changing that to BEST20. and see if that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 21:17:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-unable-to-read-long-value-numeric-displaying-as-exponential/m-p/273406#M54479</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-26T21:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS unable to read long value numeric( displaying as exponential)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-unable-to-read-long-value-numeric-displaying-as-exponential/m-p/273407#M54480</link>
      <description>&lt;P&gt;In a data step format the variable with Z20.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;syntax:&amp;nbsp; format variable_name Z20.;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 21:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-unable-to-read-long-value-numeric-displaying-as-exponential/m-p/273407#M54480</guid>
      <dc:creator>DonnaLevin</dc:creator>
      <dc:date>2016-05-26T21:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS unable to read long value numeric( displaying as exponential)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-unable-to-read-long-value-numeric-displaying-as-exponential/m-p/273415#M54481</link>
      <description>&lt;P&gt;Please note you cannot store accurately more than about 16 digits in a SAS numeric variable, so you need to import your column as a character variable. In Excel define your column as a Text column then try re-importing.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 21:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-unable-to-read-long-value-numeric-displaying-as-exponential/m-p/273415#M54481</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-05-26T21:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS unable to read long value numeric( displaying as exponential)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-unable-to-read-long-value-numeric-displaying-as-exponential/m-p/273422#M54483</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to do it by using the below,&lt;/P&gt;&lt;P&gt;libname myxls xlsx "D:/.....xlsx";&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;SPAN style="background: white; color: navy; font-family: &amp;quot;Courier New&amp;quot;;"&gt;data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt; csvdata(&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Drop&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;=Len);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN style="background: white; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Length&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt; newvar &lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: &amp;quot;Courier New&amp;quot;;"&gt;$50.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN style="background: white; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt; myxls.sheet1;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;newvar=put(ID, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="background: white; color: teal; font-family: &amp;quot;Courier New&amp;quot;;"&gt;16.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;); &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;Len=length(newvar);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN style="background: white; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Rename&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt; Newvar=ID;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;SPAN style="background: white; color: navy; font-family: &amp;quot;Courier New&amp;quot;;"&gt;run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 21:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-unable-to-read-long-value-numeric-displaying-as-exponential/m-p/273422#M54483</guid>
      <dc:creator>santosh_pat69</dc:creator>
      <dc:date>2016-05-26T21:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS unable to read long value numeric( displaying as exponential)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-unable-to-read-long-value-numeric-displaying-as-exponential/m-p/273438#M54486</link>
      <description>&lt;P&gt;Good to see you've got a solution, but you shouldn't have to do it in code. If changing the column to text in Excel doesn't work then use the Text to Columns feature by highlighting the ID column then select the&amp;nbsp;&lt;SPAN&gt;Text to Columns option on the Data menu.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 23:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-unable-to-read-long-value-numeric-displaying-as-exponential/m-p/273438#M54486</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-05-26T23:00:16Z</dc:date>
    </item>
  </channel>
</rss>

