IBM COBOL for AIX routine compile and link options

The compile and link options for building COBOL routines with the IBM® COBOL for AIX® compiler on AIX operating systems are available in the bldrtn build script.

Compile and link options for bldrtn

Compile Options:
cob2
The IBM COBOL for AIX compiler.
-qpgmname\(mixed\)
Instructs the compiler to permit CALLs to library entry points with mixed-case names.
-qlib
Instructs the compiler to process COPY statements.
-c
Perform compile only; no link. Compile and link are separate steps.
-I$DB2PATH/include/cobol_a
Specify the location of the Db2® include files. For example: $HOME/sqllib/include/cobol_a.
Link Options:
cob2
Use the compiler to link edit.
-o $1
Specify the output as a shared library file.
$1.o
Specify the stored procedure object file.
checkerr.o
Include the utility object file for error-checking.
-bnoentry
Do not specify the default entry point to the shared library.
-bE:$1.exp
Specify an export file. The export file contains a list of the stored procedures.
-L$DB2PATH/$LIB
Specify the location of the Db2 runtime shared libraries. For example: $HOME/sqllib/lib32.
-ldb2
Link with the database manager library.

Refer to your compiler documentation for additional compiler options.