| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> ProC problem
Hello,
I declare some host variables but when debug they are not filled in with
the values from the struct (see code).
Am I doing something wrong ???
Thanks
Steven
EXEC SQL INCLUDE SQLCA; EXEC SQL BEGIN DECLARE SECTION;
char v_Shoporder [SO_PC_SHOPORDER_LEN+1];
char v_ProductCode [SO_PC_PRODUCTCODE_LEN+1];
char v_Date_1 [SO_PC_DATERELEASE_LEN+1];
char v_Date_2 [SO_PC_DATERELEASE_LEN+1];
float v_Q_Requested ;
float v_Q_Finished ;
/***********************************************************************
/* copy the parameters into the host variables */
strcpy(v_Shoporder,Ora_So_Pc->Shoporder); strcpy(v_ProductCode,Ora_So_Pc->ProductCode); strcpy(v_Date_1,Ora_So_Pc->DateRelease); strcpy(v_Date_2,Ora_So_Pc->DateDue);
/* execute the update statement */
EXEC SQL insert into SO_PC
values( :v_Shoporder,
:v_ProductCode,
to_date(:v_Date_1,'DDMMYYYY'),
to_date(:v_Date_2,'DDMMYYYY'),
:v_Q_Requested,
:v_Q_Finished);
returncode=sqlca.sqlcode;
SQLCommit();
return(returncode);
} Received on Wed Jun 10 1998 - 10:41:12 CDT
![]() |
![]() |