<?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: Troubleshooting &amp;quot;Datetime field overflow&amp;quot; when dates are recent &amp;amp; dt variable form in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Troubleshooting-quot-Datetime-field-overflow-quot-when-dates-are/m-p/674460#M203126</link>
    <description>&lt;P&gt;Keep in mind that Microsoft uses an internal format for times that is different from SAS. In SAS, times are counts of seconds, in MS software, they are fractions of a day (12:00:00 is equal to 0.5).&lt;/P&gt;
&lt;P&gt;This might be the cause of your problem.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2020 17:18:11 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-08-04T17:18:11Z</dc:date>
    <item>
      <title>Troubleshooting "Datetime field overflow" when dates are recent &amp; dt variable formats are identical</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Troubleshooting-quot-Datetime-field-overflow-quot-when-dates-are/m-p/674452#M203118</link>
      <description>&lt;P&gt;Within SAS EG, I am appending data from multiple datasets in WORK to various SQL database tables in the PBIDATA library. I am able to append all data without problems except for one. I get this error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: Appending WORK.SEPSIS to PBIDATA.CEI_SepsisCCG.&lt;BR /&gt;NOTE: There were 1 observations read from the data set WORK.SEPSIS.&lt;BR /&gt;NOTE: 0 observations added.&lt;BR /&gt;NOTE: The data set PBIDATA.CEI_SepsisCCG has . observations and 69 variables.&lt;BR /&gt;ERROR: CLI execute error: [Microsoft][ODBC SQL Server Driver]Datetime field overflow&lt;BR /&gt;NOTE: Statements not processed because of errors noted above.&lt;BR /&gt;NOTE: PROCEDURE APPEND used (Total process time):&lt;BR /&gt;real time 0.07 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;after submitting this code:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc append data=sepsis &lt;BR /&gt;base=PBIDATA.CEI_SepsisCCG force;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have read up on this error and confirmed none of my datetime variables have dates earlier than the year 2015.&lt;/P&gt;
&lt;P&gt;I also confirmed that all datetime variables in the WORK dataset have a format of DATETIME22.3 and that all datetime variables in the PBIDATA dataset also have a format of&amp;nbsp;DATETIME22.3. One difference -and I'm grasping at straws here - is that some INFORMAT values on the WORK dataset are null (rather than matching the format value of DATETIME22.3).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To reitetrate, I have no problems appending other WORK datasets to other PBIDATA datasets, and those tables also include datetime variables. I am wondering if the community has any ideas on what other aspects could be investigated as the cause.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 17:01:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Troubleshooting-quot-Datetime-field-overflow-quot-when-dates-are/m-p/674452#M203118</guid>
      <dc:creator>Rodcjones</dc:creator>
      <dc:date>2020-08-04T17:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting "Datetime field overflow" when dates are recent &amp; dt variable form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Troubleshooting-quot-Datetime-field-overflow-quot-when-dates-are/m-p/674460#M203126</link>
      <description>&lt;P&gt;Keep in mind that Microsoft uses an internal format for times that is different from SAS. In SAS, times are counts of seconds, in MS software, they are fractions of a day (12:00:00 is equal to 0.5).&lt;/P&gt;
&lt;P&gt;This might be the cause of your problem.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 17:18:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Troubleshooting-quot-Datetime-field-overflow-quot-when-dates-are/m-p/674460#M203126</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-04T17:18:11Z</dc:date>
    </item>
  </channel>
</rss>

