<?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: Oracle not recognizing SAS date in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Oracle-not-recognizing-SAS-date/m-p/27530#M6276</link>
    <description>I pull data from Oracle and push to Oracle almost on a daily basis.&lt;BR /&gt;
&lt;BR /&gt;
Generally Oracle treats dates as datetime values in SAS speak.  Download an Oracle table and you'll see all date fields with a datetime. format and informat associated with it.&lt;BR /&gt;
&lt;BR /&gt;
I would first convert your date in the SAS data set into a SAS date time value then run your append.  See the below function.&lt;BR /&gt;
&lt;BR /&gt;
newDate=dhms(Yourdate,0,0,0);&lt;BR /&gt;
&lt;BR /&gt;
that should work..&lt;BR /&gt;
&lt;BR /&gt;
D</description>
    <pubDate>Wed, 26 May 2010 16:17:03 GMT</pubDate>
    <dc:creator>darrylovia</dc:creator>
    <dc:date>2010-05-26T16:17:03Z</dc:date>
    <item>
      <title>Oracle not recognizing SAS date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Oracle-not-recognizing-SAS-date/m-p/27529#M6275</link>
      <description>I am trying to append my SAS dataset into an Oracle table, but the Oracle does not recoginze SAS date - After uploading, all date columns in my SAS dateset show up in Oracle as 1960, 1961... How do convert/specify my SAS date columns so that Oracle can recognize them?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Wed, 26 May 2010 15:20:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Oracle-not-recognizing-SAS-date/m-p/27529#M6275</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-26T15:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle not recognizing SAS date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Oracle-not-recognizing-SAS-date/m-p/27530#M6276</link>
      <description>I pull data from Oracle and push to Oracle almost on a daily basis.&lt;BR /&gt;
&lt;BR /&gt;
Generally Oracle treats dates as datetime values in SAS speak.  Download an Oracle table and you'll see all date fields with a datetime. format and informat associated with it.&lt;BR /&gt;
&lt;BR /&gt;
I would first convert your date in the SAS data set into a SAS date time value then run your append.  See the below function.&lt;BR /&gt;
&lt;BR /&gt;
newDate=dhms(Yourdate,0,0,0);&lt;BR /&gt;
&lt;BR /&gt;
that should work..&lt;BR /&gt;
&lt;BR /&gt;
D</description>
      <pubDate>Wed, 26 May 2010 16:17:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Oracle-not-recognizing-SAS-date/m-p/27530#M6276</guid>
      <dc:creator>darrylovia</dc:creator>
      <dc:date>2010-05-26T16:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle not recognizing SAS date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Oracle-not-recognizing-SAS-date/m-p/27531#M6277</link>
      <description>Many many thanks D! I imagined that this would be a common issue, but to my surprise I couldn't find information over Internet. It worked. Thanks again!</description>
      <pubDate>Wed, 26 May 2010 17:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Oracle-not-recognizing-SAS-date/m-p/27531#M6277</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-26T17:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle not recognizing SAS date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Oracle-not-recognizing-SAS-date/m-p/27532#M6278</link>
      <description>One more question D,&lt;BR /&gt;
&lt;BR /&gt;
I was able to upload date column into oracle table, but when I check the values I found seemingly random time values (the date is correct), even though I used MY_DATE = dhms(MY_DATE, 0, 0, 0). Does this sound right?</description>
      <pubDate>Wed, 26 May 2010 19:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Oracle-not-recognizing-SAS-date/m-p/27532#M6278</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-26T19:28:36Z</dc:date>
    </item>
  </channel>
</rss>

