<?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: Large integer field format in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Large-integer-field-format-in-SAS/m-p/348819#M80816</link>
    <description>&lt;P&gt;Nothing strange at all, basic issue in Numeric precision. SAS well documents the maximum integer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" cellspacing="0" cellpadding="6"&gt;&lt;CAPTION&gt;&lt;A name="precis" target="_blank"&gt;&lt;/A&gt;Significant Digits and Largest Integer by Length for SAS Variables under UNIX&lt;/CAPTION&gt;
&lt;TBODY&gt;
&lt;TR valign="bottom"&gt;
&lt;TH width="27%" align="center" valign="top"&gt;&lt;A name="a000502783" target="_blank"&gt;&lt;/A&gt;Length in Bytes&lt;/TH&gt;
&lt;TH width="36%" align="center" valign="top"&gt;Significant Digits &lt;BR /&gt;Retained&lt;/TH&gt;
&lt;TH width="36%" align="center" valign="top"&gt;&lt;A name="a000502784" target="_blank"&gt;&lt;/A&gt;Largest Integer &lt;BR /&gt;Represented Exactly&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="27%" align="center" valign="top"&gt;&lt;A name="a000502786" target="_blank"&gt;&lt;/A&gt;3&lt;/TD&gt;
&lt;TD width="36%" align="center" valign="top"&gt;3&lt;/TD&gt;
&lt;TD width="36%" align="right" valign="top"&gt;&lt;A name="a000502787" target="_blank"&gt;&lt;/A&gt;8,192&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="27%" align="center" valign="top"&gt;&lt;A name="a000502789" target="_blank"&gt;&lt;/A&gt;4&lt;/TD&gt;
&lt;TD width="36%" align="center" valign="top"&gt;6&lt;/TD&gt;
&lt;TD width="36%" align="right" valign="top"&gt;&lt;A name="a000502790" target="_blank"&gt;&lt;/A&gt;2,097,152&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="27%" align="center" valign="top"&gt;&lt;A name="a000502792" target="_blank"&gt;&lt;/A&gt;5&lt;/TD&gt;
&lt;TD width="36%" align="center" valign="top"&gt;8&lt;/TD&gt;
&lt;TD width="36%" align="right" valign="top"&gt;&lt;A name="a000502793" target="_blank"&gt;&lt;/A&gt;536,870,912&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="27%" align="center" valign="top"&gt;&lt;A name="a000502795" target="_blank"&gt;&lt;/A&gt;6&lt;/TD&gt;
&lt;TD width="36%" align="center" valign="top"&gt;11&lt;/TD&gt;
&lt;TD width="36%" align="right" valign="top"&gt;&lt;A name="a000502796" target="_blank"&gt;&lt;/A&gt;137,438,953,472&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="27%" align="center" valign="top"&gt;&lt;A name="a000502798" target="_blank"&gt;&lt;/A&gt;7&lt;/TD&gt;
&lt;TD width="36%" align="center" valign="top"&gt;13&lt;/TD&gt;
&lt;TD width="36%" align="right" valign="top"&gt;&lt;A name="a000502799" target="_blank"&gt;&lt;/A&gt;35,184,372,088,832&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="27%" align="center" valign="top"&gt;&lt;A name="a000502801" target="_blank"&gt;&lt;/A&gt;8&lt;/TD&gt;
&lt;TD width="36%" align="center" valign="top"&gt;15&lt;/TD&gt;
&lt;TD width="36%" align="right" valign="top"&gt;&lt;A name="a000502802" target="_blank"&gt;&lt;/A&gt;9,007,199,254,740,992&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The integers are the same for Windows just stored differently.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2017 17:59:50 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-04-10T17:59:50Z</dc:date>
    <item>
      <title>Large integer field format in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Large-integer-field-format-in-SAS/m-p/348811#M80812</link>
      <description>&lt;P&gt;We have been using data from Hadoop via Hive ODBC in SAS and noticed something strange. &amp;nbsp;&amp;nbsp;A large integer field is returning different results in SAS than when the same query is run in HUE. &amp;nbsp;I’ve done some testing and it looks to me like a SAS format issue, but I can’t figure out how to resolve.&amp;nbsp; Have you seen this before?&amp;nbsp;&amp;nbsp; Here is an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pull riskid from Hue (9176485618548934709) and put in a SAS where statement (see below) and you return 9176485618548934656 instead of 9176485618548934709&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 17:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Large-integer-field-format-in-SAS/m-p/348811#M80812</guid>
      <dc:creator>jromeo</dc:creator>
      <dc:date>2017-04-10T17:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Large integer field format in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Large-integer-field-format-in-SAS/m-p/348818#M80815</link>
      <description>&lt;P&gt;My guess would be numeric precision. You didn't show the statement but, given the size of that number, I'd think it would have to be stored as a character variable. Most computers can't handle a number with that many digits.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 17:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Large-integer-field-format-in-SAS/m-p/348818#M80815</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-04-10T17:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Large integer field format in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Large-integer-field-format-in-SAS/m-p/348819#M80816</link>
      <description>&lt;P&gt;Nothing strange at all, basic issue in Numeric precision. SAS well documents the maximum integer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" cellspacing="0" cellpadding="6"&gt;&lt;CAPTION&gt;&lt;A name="precis" target="_blank"&gt;&lt;/A&gt;Significant Digits and Largest Integer by Length for SAS Variables under UNIX&lt;/CAPTION&gt;
&lt;TBODY&gt;
&lt;TR valign="bottom"&gt;
&lt;TH width="27%" align="center" valign="top"&gt;&lt;A name="a000502783" target="_blank"&gt;&lt;/A&gt;Length in Bytes&lt;/TH&gt;
&lt;TH width="36%" align="center" valign="top"&gt;Significant Digits &lt;BR /&gt;Retained&lt;/TH&gt;
&lt;TH width="36%" align="center" valign="top"&gt;&lt;A name="a000502784" target="_blank"&gt;&lt;/A&gt;Largest Integer &lt;BR /&gt;Represented Exactly&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="27%" align="center" valign="top"&gt;&lt;A name="a000502786" target="_blank"&gt;&lt;/A&gt;3&lt;/TD&gt;
&lt;TD width="36%" align="center" valign="top"&gt;3&lt;/TD&gt;
&lt;TD width="36%" align="right" valign="top"&gt;&lt;A name="a000502787" target="_blank"&gt;&lt;/A&gt;8,192&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="27%" align="center" valign="top"&gt;&lt;A name="a000502789" target="_blank"&gt;&lt;/A&gt;4&lt;/TD&gt;
&lt;TD width="36%" align="center" valign="top"&gt;6&lt;/TD&gt;
&lt;TD width="36%" align="right" valign="top"&gt;&lt;A name="a000502790" target="_blank"&gt;&lt;/A&gt;2,097,152&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="27%" align="center" valign="top"&gt;&lt;A name="a000502792" target="_blank"&gt;&lt;/A&gt;5&lt;/TD&gt;
&lt;TD width="36%" align="center" valign="top"&gt;8&lt;/TD&gt;
&lt;TD width="36%" align="right" valign="top"&gt;&lt;A name="a000502793" target="_blank"&gt;&lt;/A&gt;536,870,912&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="27%" align="center" valign="top"&gt;&lt;A name="a000502795" target="_blank"&gt;&lt;/A&gt;6&lt;/TD&gt;
&lt;TD width="36%" align="center" valign="top"&gt;11&lt;/TD&gt;
&lt;TD width="36%" align="right" valign="top"&gt;&lt;A name="a000502796" target="_blank"&gt;&lt;/A&gt;137,438,953,472&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="27%" align="center" valign="top"&gt;&lt;A name="a000502798" target="_blank"&gt;&lt;/A&gt;7&lt;/TD&gt;
&lt;TD width="36%" align="center" valign="top"&gt;13&lt;/TD&gt;
&lt;TD width="36%" align="right" valign="top"&gt;&lt;A name="a000502799" target="_blank"&gt;&lt;/A&gt;35,184,372,088,832&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="27%" align="center" valign="top"&gt;&lt;A name="a000502801" target="_blank"&gt;&lt;/A&gt;8&lt;/TD&gt;
&lt;TD width="36%" align="center" valign="top"&gt;15&lt;/TD&gt;
&lt;TD width="36%" align="right" valign="top"&gt;&lt;A name="a000502802" target="_blank"&gt;&lt;/A&gt;9,007,199,254,740,992&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The integers are the same for Windows just stored differently.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 17:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Large-integer-field-format-in-SAS/m-p/348819#M80816</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-10T17:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Large integer field format in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Large-integer-field-format-in-SAS/m-p/348863#M80839</link>
      <description>&lt;P&gt;Is there a way that you can pull the RISKID field as CHARACTER from Hadoop? &amp;nbsp;SAS cannot handle values that are too large to represent uniquely using IEEE 8 byte floating point numbers. If it really is an ID variable then it should be character anyway since no one will be doing any arithmetic on it.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 20:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Large-integer-field-format-in-SAS/m-p/348863#M80839</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-10T20:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Large integer field format in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Large-integer-field-format-in-SAS/m-p/348883#M80848</link>
      <description>&lt;P&gt;Yes - it should be a character field.&amp;nbsp; I am not sure it is being read as numeric.&amp;nbsp; I'll try to convert the format thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 20:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Large-integer-field-format-in-SAS/m-p/348883#M80848</guid>
      <dc:creator>jromeo</dc:creator>
      <dc:date>2017-04-10T20:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Large integer field format in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Large-integer-field-format-in-SAS/m-p/348893#M80853</link>
      <description>&lt;P&gt;Have not had this problem in a while but using passthru you should be able to cast the big int.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;cast(bigint_var,char(20) or decimal(20) ) you don't need to go any larger &amp;nbsp;because bigint max is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;9,223,372,036,854,775,807&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 20:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Large-integer-field-format-in-SAS/m-p/348893#M80853</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-04-10T20:54:56Z</dc:date>
    </item>
  </channel>
</rss>

