<?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 Issue while using StoredProcess -Writing date to Oracle in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Issue-while-using-StoredProcess-Writing-date-to-Oracle/m-p/11559#M2300</link>
    <description>I`m able to insert a row to oracle  with the following script&lt;BR /&gt;
proc sql;&lt;BR /&gt;
&lt;BR /&gt;
insert into MART.detail_extra(period_key,report_name,audit_time,comments)&lt;BR /&gt;
&lt;BR /&gt;
values(252,'Commission Detail'&lt;B&gt;,&amp;amp;curdate&lt;/B&gt;,'REP-Generation of report ');&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
But when i run using stored process it s giving the following error.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Error:&lt;BR /&gt;
&lt;BR /&gt;
ERROR: ERROR: ERROR: ORACLE execute error: ORA-01858: a non-numeric character was found where a numeric was expected. With the occurrence of the above ERROR, the error limit of 1 set by&lt;BR /&gt;
&lt;BR /&gt;
the ERRLIMIT= option has been reached. ROLLBACK has been issued(Any Rows processed after the last COMMIT are lost).&lt;BR /&gt;
&lt;BR /&gt;
Total rows processed: 1&lt;BR /&gt;
&lt;BR /&gt;
Rows failed : 1&lt;BR /&gt;
&lt;BR /&gt;
ERROR: ROLLBACK issued due to errors for data set&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Has anyone encountered this before ?</description>
    <pubDate>Tue, 05 Oct 2010 11:34:17 GMT</pubDate>
    <dc:creator>tommy81</dc:creator>
    <dc:date>2010-10-05T11:34:17Z</dc:date>
    <item>
      <title>Issue while using StoredProcess -Writing date to Oracle</title>
      <link>https://communities.sas.com/t5/Developers/Issue-while-using-StoredProcess-Writing-date-to-Oracle/m-p/11559#M2300</link>
      <description>I`m able to insert a row to oracle  with the following script&lt;BR /&gt;
proc sql;&lt;BR /&gt;
&lt;BR /&gt;
insert into MART.detail_extra(period_key,report_name,audit_time,comments)&lt;BR /&gt;
&lt;BR /&gt;
values(252,'Commission Detail'&lt;B&gt;,&amp;amp;curdate&lt;/B&gt;,'REP-Generation of report ');&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
But when i run using stored process it s giving the following error.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Error:&lt;BR /&gt;
&lt;BR /&gt;
ERROR: ERROR: ERROR: ORACLE execute error: ORA-01858: a non-numeric character was found where a numeric was expected. With the occurrence of the above ERROR, the error limit of 1 set by&lt;BR /&gt;
&lt;BR /&gt;
the ERRLIMIT= option has been reached. ROLLBACK has been issued(Any Rows processed after the last COMMIT are lost).&lt;BR /&gt;
&lt;BR /&gt;
Total rows processed: 1&lt;BR /&gt;
&lt;BR /&gt;
Rows failed : 1&lt;BR /&gt;
&lt;BR /&gt;
ERROR: ROLLBACK issued due to errors for data set&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Has anyone encountered this before ?</description>
      <pubDate>Tue, 05 Oct 2010 11:34:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Issue-while-using-StoredProcess-Writing-date-to-Oracle/m-p/11559#M2300</guid>
      <dc:creator>tommy81</dc:creator>
      <dc:date>2010-10-05T11:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while using StoredProcess -Writing date to Oracle</title>
      <link>https://communities.sas.com/t5/Developers/Issue-while-using-StoredProcess-Writing-date-to-Oracle/m-p/11560#M2301</link>
      <description>Have you checked the value of CURDATE when run through the stored process to make sure it is valid?  I'm guessing that the error could be encountered if CURDATE is not defined or contains illegal characters.&lt;BR /&gt;
&lt;BR /&gt;
Vince DelGobbo&lt;BR /&gt;
SAS R&amp;amp;D</description>
      <pubDate>Tue, 05 Oct 2010 15:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Issue-while-using-StoredProcess-Writing-date-to-Oracle/m-p/11560#M2301</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2010-10-05T15:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while using StoredProcess -Writing date to Oracle</title>
      <link>https://communities.sas.com/t5/Developers/Issue-while-using-StoredProcess-Writing-date-to-Oracle/m-p/11561#M2302</link>
      <description>Hi Vince Curdate is defined as a datetime variable .... &lt;BR /&gt;
Reg Q1 , how xcatly do u think the value would change once we run in a stored process , and no that vvalue is not checked hen run thru a storedprocess</description>
      <pubDate>Tue, 05 Oct 2010 17:31:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Issue-while-using-StoredProcess-Writing-date-to-Oracle/m-p/11561#M2302</guid>
      <dc:creator>tommy81</dc:creator>
      <dc:date>2010-10-05T17:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while using StoredProcess -Writing date to Oracle</title>
      <link>https://communities.sas.com/t5/Developers/Issue-while-using-StoredProcess-Writing-date-to-Oracle/m-p/11562#M2303</link>
      <description>You might want to open a track with our technical support department.&lt;BR /&gt;
&lt;BR /&gt;
Vince DelGobbo&lt;BR /&gt;
SAS R&amp;amp;D</description>
      <pubDate>Tue, 05 Oct 2010 17:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Issue-while-using-StoredProcess-Writing-date-to-Oracle/m-p/11562#M2303</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2010-10-05T17:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while using StoredProcess -Writing date to Oracle</title>
      <link>https://communities.sas.com/t5/Developers/Issue-while-using-StoredProcess-Writing-date-to-Oracle/m-p/11563#M2304</link>
      <description>What is mentioned as "Curdate is defined as a datetime variable"  may be misunderstood, given you are using a SAS macro variable.  Somewhere in your SAS code the macro variable &amp;amp;CURDATE must be assigned, possibly with a CALL SYMPUT or a %LET statement.  But do consider that this macro variable is a character-string, even if it is a number -- although it may appear formatted as DATETIME, it is still a character-string of information.  Or if you see a SAS message "WARNING: Apparent symbolic reference CURDATE not resolved."&lt;BR /&gt;
 -- that would lead one to believe that your program is not setting the macro variable used in the code piece you revealed in your post.  Suggest some desk-checking of your SAS log output to determine where &amp;amp;CURDATE is assigned and also consider executing the code below to display all user-defined macro variables:&lt;BR /&gt;
&lt;BR /&gt;
%PUT _USER_;&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 06 Oct 2010 04:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Issue-while-using-StoredProcess-Writing-date-to-Oracle/m-p/11563#M2304</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-10-06T04:48:27Z</dc:date>
    </item>
  </channel>
</rss>

