<?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 Date insert to Oracle table Issue Base SAS Date in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Date-insert-to-Oracle-table-Issue-Base-SAS-Date/m-p/692153#M79680</link>
    <description>&lt;P&gt;Sorry guys, having an issue. I am inserting records into an Oracle database Table and one of the fields is todays date which I am writing as a datestamp for historical reference.&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;insert into ORACLEDB.ORACLETABLE(CDM_ID, DWELLING_ID, UNIQUE_KEY, MGMT_DT) &lt;BR /&gt;(select CDM_ID, DWELLING_ID, UNIQUE_KEY, today() format=YYMMDDD10. as MGMT_DT from SASVOLATILETABLE);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;This however is passing off a zero so I am getting Jan 1 1960 in my Oracle Table&lt;/P&gt;</description>
    <pubDate>Fri, 16 Oct 2020 15:40:16 GMT</pubDate>
    <dc:creator>Jyuen204</dc:creator>
    <dc:date>2020-10-16T15:40:16Z</dc:date>
    <item>
      <title>Date insert to Oracle table Issue Base SAS Date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-insert-to-Oracle-table-Issue-Base-SAS-Date/m-p/692153#M79680</link>
      <description>&lt;P&gt;Sorry guys, having an issue. I am inserting records into an Oracle database Table and one of the fields is todays date which I am writing as a datestamp for historical reference.&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;insert into ORACLEDB.ORACLETABLE(CDM_ID, DWELLING_ID, UNIQUE_KEY, MGMT_DT) &lt;BR /&gt;(select CDM_ID, DWELLING_ID, UNIQUE_KEY, today() format=YYMMDDD10. as MGMT_DT from SASVOLATILETABLE);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;This however is passing off a zero so I am getting Jan 1 1960 in my Oracle Table&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 15:40:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-insert-to-Oracle-table-Issue-Base-SAS-Date/m-p/692153#M79680</guid>
      <dc:creator>Jyuen204</dc:creator>
      <dc:date>2020-10-16T15:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Date insert to Oracle table Issue Base SAS Date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-insert-to-Oracle-table-Issue-Base-SAS-Date/m-p/692161#M79683</link>
      <description>I think you need a datetime, not a date? Try replacing today with datetime() and not applying a format or using a datetime format.&lt;BR /&gt;&lt;BR /&gt;(select CDM_ID, DWELLING_ID, UNIQUE_KEY, datetime() format=datetime22. as MGMT_DT from SASVOLATILETABLE);&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Oct 2020 16:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-insert-to-Oracle-table-Issue-Base-SAS-Date/m-p/692161#M79683</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-16T16:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date insert to Oracle table Issue Base SAS Date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-insert-to-Oracle-table-Issue-Base-SAS-Date/m-p/692162#M79684</link>
      <description>Thank you so much Reeza!</description>
      <pubDate>Fri, 16 Oct 2020 16:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-insert-to-Oracle-table-Issue-Base-SAS-Date/m-p/692162#M79684</guid>
      <dc:creator>Jyuen204</dc:creator>
      <dc:date>2020-10-16T16:23:51Z</dc:date>
    </item>
  </channel>
</rss>

