Home » Developer & Programmer » Forms » PCC-S-02322 error(Help needed)
PCC-S-02322 error(Help needed) [message #77916] Fri, 14 December 2001 04:36 Go to next message
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 Go to previous messageGo to next message
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 Go to previous messageGo to next message
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
Re: PCC-S-02322 error(Help needed) [message #78885 is a reply to message #77964] Tue, 26 March 2002 17:00 Go to previous messageGo to next message
wangyunfeng
Messages: 1
Registered: March 2002
Junior Member
No Message Body
Re: PCC-S-02322 error(Help needed) [message #79071 is a reply to message #77964] Sat, 20 April 2002 03:38 Go to previous messageGo to next message
Rahul
Messages: 94
Registered: December 1998
Member
Hi
Go to options and set parse to "full" which would probably in none right now.
bye
Re: PCC-S-02322 error(Help needed) [message #81831 is a reply to message #77916] Tue, 25 March 2003 06:26 Go to previous messageGo to next message
saba
Messages: 6
Registered: March 2003
Junior Member
I too am facing the same problem. If u have the solution plz post it over.
Re: PCC-S-02322 error(Help needed) [message #83651 is a reply to message #78238] Tue, 18 November 2003 05:18 Go to previous message
Dear June
Messages: 1
Registered: November 2003
Junior Member
EXEC SQL BEGIN DECLARE SECTION;
varchar username [[16+1]];
varchar password[[4+1]];
EXEC SQL END DECLARE SECTION;
Previous Topic: Urgent ! Create PDF File !
Next Topic: Can anybody assisst me in Reports
Goto Forum:
  


Current Time: Sat Apr 20 03:14:40 CDT 2024