Skip to main content

Problem:

Using either

cob -ivt db2test.cbl -C "DB2(DB==SAMPLE)"

or

cob32 -C nolist -ivt db2test.cbl -C DB2(DB==SAMPLE)

results in

* Micro Focus Server Express         V2.2 revision 000           Compiler

* Copyright (C) 1984-2003 Micro Focus International Ltd. URN RXCAI/AA0/00000

* Accepted - verbose

* Accepted - reentrant

* Accepted - nolist

* Rejected - DB2(DB=SAMPLE)

* 155-U

155     Illegal command line

Resolution:

One may see this error if

1. the DB2 ECM is not present- that means that the product does not support the precompiler on the specified platform. UDB isn't available on all UNIX platforms. Therefore, we only provide the DB2 ECM module on platforms where UDB is available, and IBM supports precompiling COBOL. Check to make sure that the platform supports UDB.

2. If the LIBPATH is not set correctly. Check to make sure that LIBPATH points to the sqllib\\lib directory (i.e.the lib directory under the directory where the IBM SDK was installed).

Old KB# 7200