PCC-S-02322 error(Help needed) [message #77916] |
Fri, 14 December 2001 04:36 |
Surya
Messages: 34 Registered: December 2001
|
Member |
|
|
Hi guys,
O/S : WIN NT
precompiler V 8.1 running application on VC++
Here is my delcaration:
#include <stdlib.h>
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <sys/types.h>
#include <time.h>
#include <math.h>
#include <errno.h>
#include <oraca.h>
EXEC SQL INCLUDE sqlca.h;
EXEC SQL INCLUDE sqlda.h;
#define MAX_VARCHAR 2000
#define MAX_COLUMN 256
#define MX_LENGTH 255
int main()
{
EXEC SQL BEGIN DECLARE SECTION;
VARCHAR lv_DOCM_EVNT_TYP_CD[[MX_LENGTH + 1]];
VARCHAR lv_DOCM_EVNT_DATA_TYP_CD[[255 + 1]];
VARCHAR lv_INTFC_EVNT_DATA_VAL[[255 + 1]];
VARCHAR lv_AGRE_PRD_EFF_DT[[255 + 1]];
int li_AGRE_ID;
short ls_ind_DOCM_EVNT_TYP_CD;
short ls_ind_DOCM_EVNT_DATA_TYP_CD;
short ls_ind_INTFC_EVNT_DATA_VAL;
short ls_ind_AGRE_PRD_EFF_DT;
EXEC SQL END DECLARE SECTION;
bhla bhla ....
return 1;
}
when i compile te above program it gives me following
error
c) Copyright 2000 Oracle Corporation. All rights reserved.
System default option values taken from: C:oracleora81precompadminpcscfg.cfg
Semantic error at line 328, column 34, file .DWC_POC.pc:
VARCHAR lv_DOCM_EVNT_TYP_CD[[MX_LENGTH + 1]];
.................................1
PCC-S-02322, found undefined identifier
Semantic error at line 328, column 34, file .DWC_POC.pc:
VARCHAR lv_DOCM_EVNT_TYP_CD[[MX_LENGTH + 1]];
.................................1
PCC-S-02322, found undefined identifier
Error executing proc.
DWC_POC.exe - 2 error(s), 0 warning(s)
Please help me if u have any clue.
Thanks a lot,
surya
----------------------------------------------------------------------
|
|
|
Re: PCC-S-02322 error(Help needed) [message #77964 is a reply to message #77916] |
Tue, 25 December 2001 21:18 |
waris
Messages: 115 Registered: November 2001
|
Senior Member |
|
|
Hi Surya..
Iam not sure wether iam right or not...
but i think the declaration needs to be done outside the main section....
cheers
waris
----------------------------------------------------------------------
|
|
|
Re: PCC-S-02322 error(Help needed) [message #78238 is a reply to message #77964] |
Fri, 01 February 2002 09:02 |
Ramana Namuduri
Messages: 1 Registered: February 2002
|
Junior Member |
|
|
Please help me out: I am getting an error in my .pc file when I used the following statement.
EXEC SQL CONNECT :username IDENTIFIED BY :password;
Error is:
Semantic error at line , column
EXEC SQL CONNECT :username IDENTIFIED BY :password;
..................1
PCC-S-02322, found undefined identifier
MODE has been set to ORACLE.
Thanks,
Ramana
|
|
|
|
|
|
|