Problem:
When compiling a program containing SQL SELECT statement, an error was displayed saying that a host variable referred in the SQL statement was not a data item:
COBDB0109S <variable> is not a data item.
The variable is defined in a copybook called in the program.
Solution:
The error message was displayed only when HCO for DB2 LUW Preprocessor was used.
It is suggested to use directive DB2(COPY) when using the HCO for DB2 LUW Preprocessor.
This can be set to true as well from the preprocessor interface.
#COBDB0109SHCOforDB2LUW
#EnterpriseDeveloper
#MFDS
