Unix Technical Forum

pro*C help !!!!!!!!!!!!!!!

This is a discussion on pro*C help !!!!!!!!!!!!!!! within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi, I am trying to migrate a report generator written in Pro C to Java. But when i'm precompiling ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 06:54 AM
Aakash
 
Posts: n/a
Default pro*C help !!!!!!!!!!!!!!!

Hi,

I am trying to migrate a report generator written in Pro C to Java.
But when i'm precompiling the Pro*C code using the Oracle Pro*C tool
it spews out the following errors.

int CreWhereClause(char *szRunDate,...)
{
EXEC SQL SELECT to_char(to_date(:yesterday, 'dd-mon-yyyy'),
'dd-mon-yyyy') INTO :szRunDate from dual;


PCC-S-02322, found undefined identifier
Semantic error at line 649, column 94, file C:\temp.pc:
EXEC SQL SELECT to_char(to_date(:yesterday, 'dd-mon-yyyy'),
'dd-mon-
yyyy') INTO :szRunDate from dual;




I have no clue as to how to get rid of the above errors.

Any help appreciated...


Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 06:54 AM
Gerard H. Pille
 
Posts: n/a
Default Re: pro*C help !!!!!!!!!!!!!!!

Aakash wrote:
> Hi,
>
> I am trying to migrate a report generator written in Pro C to Java.
> But when i'm precompiling the Pro*C code using the Oracle Pro*C tool
> it spews out the following errors.
>
> int CreWhereClause(char *szRunDate,...)
> {
> EXEC SQL SELECT to_char(to_date(:yesterday, 'dd-mon-yyyy'),
> 'dd-mon-yyyy') INTO :szRunDate from dual;
>
>
> PCC-S-02322, found undefined identifier
> Semantic error at line 649, column 94, file C:\temp.pc:
> EXEC SQL SELECT to_char(to_date(:yesterday, 'dd-mon-yyyy'),
> 'dd-mon-
> yyyy') INTO :szRunDate from dual;
>
>
>
>
> I have no clue as to how to get rid of the above errors.
>
> Any help appreciated...
>
>
> Thanks
>


Could it be that the input lines are too long?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 06:55 AM
Ed Prochak
 
Posts: n/a
Default Re: pro*C help !!!!!!!!!!!!!!!

SO did you check the error? Are all the variables declared in C
properly?

What data types? Did you DECLARE them to the precompiler?

Ed

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 06:56 AM
Prashant
 
Posts: n/a
Default Re: pro*C help !!!!!!!!!!!!!!!

Check the declaration of char/varchar host variable ":szRunDate"

Aakash wrote:
> Hi,
>
> I am trying to migrate a report generator written in Pro C to Java.
> But when i'm precompiling the Pro*C code using the Oracle Pro*C tool
> it spews out the following errors.
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:19 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com