<?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: Datetime field overflow error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Datetime-field-overflow-error/m-p/646505#M193421</link>
    <description>&lt;P&gt;Do one or more of your dates occur before the year 1753?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at:&amp;nbsp;&lt;A href="https://support.sas.com/kb/32/531.html" target="_blank"&gt;https://support.sas.com/kb/32/531.html&lt;/A&gt;&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>Sun, 10 May 2020 14:22:39 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2020-05-10T14:22:39Z</dc:date>
    <item>
      <title>Datetime field overflow error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datetime-field-overflow-error/m-p/646499#M193415</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The date column in the table full_patient_reg is varchar. I converted it to mmddyy10. format.&lt;/P&gt;&lt;P&gt;When I try to export the entire table to SQL Server I receive an error like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;data proj.full_patient_reg;&lt;BR /&gt;&amp;nbsp;set full_patient_reg;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.&lt;BR /&gt;ERROR: CLI execute error: [Microsoft][ODBC SQL Server Driver]Datetime field overflow&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were 441255 observations read from the data set WORK.FULL_PATIENT_REG.&lt;BR /&gt;WARNING: The data set PROJ.full_patient_reg may be incomplete. When this step was&lt;BR /&gt;stopped there were 441254 observations and 20 variables.&lt;BR /&gt;ERROR: ROLLBACK issued due to errors for data set PROJ.full_patient_reg.DATA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to sort out the error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 12:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datetime-field-overflow-error/m-p/646499#M193415</guid>
      <dc:creator>Sathish_jammy</dc:creator>
      <dc:date>2020-05-10T12:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime field overflow error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datetime-field-overflow-error/m-p/646503#M193419</link>
      <description>&lt;P&gt;Hiw did you convert the value to the mmddyy10. format? Please show this code.&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 14:09:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datetime-field-overflow-error/m-p/646503#M193419</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-10T14:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime field overflow error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datetime-field-overflow-error/m-p/646505#M193421</link>
      <description>&lt;P&gt;Do one or more of your dates occur before the year 1753?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at:&amp;nbsp;&lt;A href="https://support.sas.com/kb/32/531.html" target="_blank"&gt;https://support.sas.com/kb/32/531.html&lt;/A&gt;&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>Sun, 10 May 2020 14:22:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datetime-field-overflow-error/m-p/646505#M193421</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2020-05-10T14:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime field overflow error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datetime-field-overflow-error/m-p/646507#M193423</link>
      <description>&lt;P&gt;What is the Version of SQL Server ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that SQL Server 2005 and prior versions do not support Date Only formats, you may have to explicitly convert the SAS Data to datetime prior to loading .&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 14:38:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datetime-field-overflow-error/m-p/646507#M193423</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2020-05-10T14:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime field overflow error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datetime-field-overflow-error/m-p/646510#M193426</link>
      <description>&lt;P&gt;The format in the Date variables(varchar) like&lt;/P&gt;&lt;P&gt;1972-10-09 00:00:00&lt;BR /&gt;1965-06-21 08:22:19.017&lt;/P&gt;&lt;P&gt;1970-06-23 07:03:00.47&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the below code to convert into dateformat. All the date variables converted well. but when I export it to Ms SQL it caused an error.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data full_patient_reg;
set Hin.hinai_patient;
Fv_date = input(REGISTRATIONDATE,anydtdte32.);
Birth_Dt = input(DOB,anydtdte32.);
format Fv_date Birth_Dt mmddyy10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 10 May 2020 14:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datetime-field-overflow-error/m-p/646510#M193426</guid>
      <dc:creator>Sathish_jammy</dc:creator>
      <dc:date>2020-05-10T14:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime field overflow error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datetime-field-overflow-error/m-p/646512#M193428</link>
      <description>&lt;P&gt;My&amp;nbsp;SQL Server version is 2014.&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 14:58:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datetime-field-overflow-error/m-p/646512#M193428</guid>
      <dc:creator>Sathish_jammy</dc:creator>
      <dc:date>2020-05-10T14:58:42Z</dc:date>
    </item>
  </channel>
</rss>

