Skip to main content

User-name not unique error when using the cp pre-processor and Oracle

  • February 15, 2013
  • 0 replies
  • 0 views

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

Old KB# 2037

0 replies

Be the first to reply!