Problem:
The behaviour of VARCHAR2 host variables have changed in Pro*COBOL v8.0
You have VARCHAR2 host variables defined as PIC X(n) and are having problems with tests/compares in your WHERE clause after upgrading your version of Oracle.
Resolution:
Oracle have a configuration option for Pro*COBOL to revert back to the old behaviour.
In the $ORACLE_HOME/precomp/admin/pcbcfg.cfg file, add the following:
PICX=VARCHAR2
From now on by default, PIC X(n) host variables will no longer have the trailing spaces truncated unless you have this configuration option.