Skip to main content

Problem:

Compiling with Cobsql returns CSQL-F-013 against COBPUB.CBL

Compiling DB2 application cannot locate sql.cbl

Compiling Sybase application cannot locate cobpub.cbl

Compiling Oracle application cannot locate sqlca.cob

This article also relates to Server Express on UNIX platforms.

Resolution:

When using third party (RDBMS) COBOL precompilers, you need to ensure that the precompiler option for specifying include directories, and/or the COBCPY environment variable setting, are set correctly for locating copy files supplied by the RDBMS vendor.

For example, with DB2 applications, the copy files are located under $DB2DIR/include/cobol_mf (UNIX) or �2DIR%\\include\\cobol_mf (Windows), so the COBCPY environment variable needs to include that directory..

Old KB# 1473