Skip to main content

COBDB0109S sql_variable is not a data item

  • March 24, 2015
  • 0 replies
  • 0 views

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

0 replies

Be the first to reply!