<?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 What is the correct syntax for inserting into Oracle date col? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47242#M9766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are running the SQL in SAS try using SAS syntax for specifying a date literal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'14NOV2011'd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2011 16:26:57 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2011-11-14T16:26:57Z</dc:date>
    <item>
      <title>What is the correct syntax for inserting into Oracle date col?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47241#M9765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following code :&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;insert into ora.sas_ora_out( date_col) &lt;BR /&gt;&amp;nbsp; values('14-NOV-11');&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;However, I get this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Value 1 of VALUES clause 1 does not match the data type of the&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; corresponding column in the object-item list (in the SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clause).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 16:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47241#M9765</guid>
      <dc:creator>jcheema</dc:creator>
      <dc:date>2011-11-14T16:05:20Z</dc:date>
    </item>
    <item>
      <title>What is the correct syntax for inserting into Oracle date col?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47242#M9766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are running the SQL in SAS try using SAS syntax for specifying a date literal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'14NOV2011'd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 16:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47242#M9766</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-11-14T16:26:57Z</dc:date>
    </item>
    <item>
      <title>What is the correct syntax for inserting into Oracle date col?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47243#M9767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Tom.&lt;/P&gt;&lt;P&gt;That will work but I am trying to find out the correct format. &lt;/P&gt;&lt;P&gt;Actual problem is with a DI job I am creating which needs to insert current date into an Oracle date column. I have used date() function but I am getting 01 Jan 1960 . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 16:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47243#M9767</guid>
      <dc:creator>jcheema</dc:creator>
      <dc:date>2011-11-14T16:36:55Z</dc:date>
    </item>
    <item>
      <title>What is the correct syntax for inserting into Oracle date col?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47244#M9768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try a datetime value?&amp;nbsp; &lt;/P&gt;&lt;P&gt;'14NOV2011:00:00'dt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 16:51:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47244#M9768</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-11-14T16:51:25Z</dc:date>
    </item>
    <item>
      <title>What is the correct syntax for inserting into Oracle date col?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47245#M9769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes &lt;/P&gt;&lt;P&gt;'14NOV2011:00:00'dt&lt;SPAN id="copyTeaser" style="position: absolute; margin: -23px -5px -5px -15px; width: 72px; height: 22px; cursor: pointer; user-select: none;" title="Search"&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/109340#" onclick=""&gt;&lt;IMG border="0" src="http://static.app.widdit.com/images/features/searchwiddit.png" style="cursor: pointer;" /&gt;&lt;/A&gt;&lt;/SPAN&gt; works -- incidently '14NOV2011'd would not work.&lt;/P&gt;&lt;P&gt;But I want to use date() or datetime() function in the insert clause&amp;nbsp; / DI job&lt;SPAN id="copyTeaser" style="position: absolute; margin: -23px -5px -5px -15px; width: 72px; height: 22px; cursor: pointer; user-select: none;" title="Search"&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/109340#" onclick=""&gt;&lt;IMG border="0" src="http://static.app.widdit.com/images/features/searchwiddit.png" style="cursor: pointer;" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 17:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47245#M9769</guid>
      <dc:creator>jcheema</dc:creator>
      <dc:date>2011-11-14T17:07:19Z</dc:date>
    </item>
    <item>
      <title>What is the correct syntax for inserting into Oracle date col?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47246#M9770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oracle only has the DATETIME type.&amp;nbsp; So use datetime() function. Or other functions that generate datetime values like dhms().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 17:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47246#M9770</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-11-14T17:16:31Z</dc:date>
    </item>
    <item>
      <title>What is the correct syntax for inserting into Oracle date col?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47247#M9771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since a single column is changing I read the request as an UPDATE, rather than INSERT which only adds rows (iirc)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 07:56:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-correct-syntax-for-inserting-into-Oracle-date-col/m-p/47247#M9771</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-11-15T07:56:11Z</dc:date>
    </item>
  </channel>
</rss>

