My Oracle Support Banner

Pro*C Fails with PCC-S-02201 When Using COMMON_PARSER=YES Along With Arithmetic Expression on Host Array (Doc ID 2217400.1)

Last updated on OCTOBER 01, 2018

Applies to:

Precompilers - Version to
Information in this document applies to any platform.
*** Checked for relevance on 26th Dec 2016 ***


Pro*C precompilation fails with PCC-S-02201 error while trying to compile code that does arithmetic operation on host array and when common_parser=yes option is used.

For example, for following embedded SQL(EXEC SQL) fails during precompilation.

int v_temp[1] = 0 ;
EXEC SQL INSERT INTO table01 (col01) VALUES (:v_temp[0] + 1) ;

Error Message:

$ proc iname=test11 common_parser=yes

Pro*C/C++: Release - Production on Fri Dec 23 07:00:44 2016

Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.

System default option values taken from: /.../precomp/admin/pcscfg.cfg

Syntax error at line 5, column 59, file test11.pc:
Error at line 5, column 59 in file test11.pc
EXEC SQL INSERT INTO table01 (col01) VALUES (:v_temp[0] + 1) ;
PCC-S-02201, Encountered the symbol "+" when expecting one of the following:

; : [ . -> an identifier, indicator, random_terminal
The symbol ": was inserted before "+" to continue.

Error at line 0, column 0 in file test11.pc
PCC-F-02102, Fatal error while doing C preprocessing



Common parser is used (common_parser=yes) for a source code (.pc) that was precompiled with old parser before


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.