<?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: What is the maximum date timestamp that SAS can store? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-maximum-date-timestamp-that-SAS-can-store/m-p/300370#M63430</link>
    <description>&lt;P&gt;Sounds like you had an over zealous dba/solution designer...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could someone even imagine a real world date that would be between 01jan9999:23:59:59 and&amp;nbsp;&lt;SPAN&gt;01jan9999:23:59:59.9999999?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As a comparison, SAS uses 01Jan5999:00:00 as a high dat by default.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Is SAS responsible&amp;nbsp;for updating&amp;nbsp;this data?&lt;/P&gt;
&lt;P&gt;What happens&amp;nbsp;if you try to filter out high dates using a constant&amp;nbsp;with the dt literal?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2016 13:37:36 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-09-23T13:37:36Z</dc:date>
    <item>
      <title>What is the maximum date timestamp that SAS can store?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-maximum-date-timestamp-that-SAS-can-store/m-p/300335#M63421</link>
      <description>&lt;P&gt;I have a timestamp value in teradata that is '9999-12-31 23:59:59.999999' that we use as a high date. When i see this value in SAS, it comes in as '01JAN****:00:00:00.000000'. This leads me to believe that there is some max date that SAS is limited to. Any suggestions as to how to make SAS read it as '31DEC9999:23:59:59.999999' or is this even possible?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 11:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-maximum-date-timestamp-that-SAS-can-store/m-p/300335#M63421</guid>
      <dc:creator>jfreeze03</dc:creator>
      <dc:date>2016-09-23T11:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: What is the maximum date timestamp that SAS can store?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-maximum-date-timestamp-that-SAS-can-store/m-p/300345#M63422</link>
      <description>&lt;P&gt;The problem here is not so much the date range, but the fact that you run into the typical numeric precision problem of the real number representation that SAS uses to store numbers.&lt;/P&gt;
&lt;P&gt;Since a datetime value is the count of seconds from 01jan1960:00:00:00, you get sufficiently large numbers that force some (binary) rounding.&lt;/P&gt;
&lt;P&gt;Therefore, the datetime literal '31dec9999:23:59:59.900000'dt; will actually display as 31DEC9999:23:59:59.899994.&lt;/P&gt;
&lt;P&gt;Adding more '9' digits forces more imprecision, and at one point SAS rounds up to the next second before displaying, and that is 00:00:00 on January 1st, 10000, which is outside the displayable date range.&lt;/P&gt;
&lt;P&gt;I suggest reading such timestamps as dates and times separately, and setting the year to 2999 if it is 9999.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 12:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-maximum-date-timestamp-that-SAS-can-store/m-p/300345#M63422</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-09-23T12:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: What is the maximum date timestamp that SAS can store?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-maximum-date-timestamp-that-SAS-can-store/m-p/300370#M63430</link>
      <description>&lt;P&gt;Sounds like you had an over zealous dba/solution designer...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could someone even imagine a real world date that would be between 01jan9999:23:59:59 and&amp;nbsp;&lt;SPAN&gt;01jan9999:23:59:59.9999999?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As a comparison, SAS uses 01Jan5999:00:00 as a high dat by default.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Is SAS responsible&amp;nbsp;for updating&amp;nbsp;this data?&lt;/P&gt;
&lt;P&gt;What happens&amp;nbsp;if you try to filter out high dates using a constant&amp;nbsp;with the dt literal?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 13:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-maximum-date-timestamp-that-SAS-can-store/m-p/300370#M63430</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-09-23T13:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: What is the maximum date timestamp that SAS can store?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-maximum-date-timestamp-that-SAS-can-store/m-p/300400#M63443</link>
      <description>&lt;P&gt;Pretty sure&amp;nbsp;it's a precision of storage issue.&lt;/P&gt;
&lt;P&gt;31DEC9999:23:59:59 doesn't have an issue because it is integer. As soon as you add the decimals though it starts causing problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The **** appear because the storage ends up rounding up to when displayed and SAS hasn't yet provided formats to display year 10,000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 14:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-maximum-date-timestamp-that-SAS-can-store/m-p/300400#M63443</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-23T14:55:45Z</dc:date>
    </item>
  </channel>
</rss>

