Windows IBM COBOL routine compile and link options
The compile and link
options for building COBOL routines, such as stored procedures and
user-defined functions, on Windows operating
systems with the IBM® VisualAge® COBOL compiler are
available in the
bldrtn.bat batch file.
Compile and link options for bldrtn
Compile
options:
cob2- The IBM VisualAge COBOL compiler.
-qpgmname(mixed)- Instructs the compiler to permit CALLs to library entry points with mixed-case names.
-c- Perform compile only; no link. This batch file has separate compile and link steps.
-qlib- Instructs the compiler to process COPY statements.
-Ipath- Specify the location of the Db2® include files. For
example:
-I"%DB2PATH%\include\cobol_a". %EXTRA_COMPFLAG%- If
"set IBMCOB_PRECOMP=true"is uncommented, the IBM COBOL precompiler is used to precompile the embedded SQL. It is invoked with one of the following formulations, depending on the input parameters:-q"SQL('database sample CALL_RESOLUTION DEFERRED')"- precompile using the default sample database, and defer call resolution.
-q"SQL('database %2 CALL_RESOLUTION DEFERRED')"- precompile using a database specified by the user, and defer call resolution.
Link options:
ilink- Use the IBM VisualAge COBOL linker.
/free- Free format.
/nol- No logo.
/dll- Create the DLL with the source program name.
db2api.lib- Link with the Db2 library.
%1.exp- Include the export file.
%1.obj- Include the program object file.
iwzrwin3.obj- Include the object file provided by IBM VisualAge COBOL.
Refer to your compiler documentation for additional compiler options.