Either you did not specify a database name in your project, or you have not set the DB2DBDFT environment variable to specify
a database name.
Resolution:
Do one of the following:
- On the
SQL
dialog box in your
Build Configurations:
- Set the
ESQL Preprocessor to
HCO for DB2 LUW
- Set the DB directive, specifying the name of your DB2 database as its value
- Set the DB2DBDFT environment variable value to the name of your DB2 database
Then, recompile the program.