Problem:
Using COPY ... REPLACING ... gives user-name not unique errors even though the variable name is unique.
The problem only occurs when using the CP preprocessor with COBSQL.
Resolution:
Solution tested on Red Hat Enterprise Linux 4 & Server Express 5.
By default pcbcfg.cfg (in $ORACLE_HOME/precomp/admin) defines:
comp5=yes
define=comp5
Changing COMP5=YES to be COMP5=NO will resolve this issue.
COMP5=YES can also be overridden at compile time by passeing COMP5=NO in the list of directives to be passed to the Pro*COBOL precompiler as follows:
PREPROCESS(COBSQL) CSQLT=ORACLE8 END-C COMP5=NO P(CP) ENDP
