Building UNIX Micro Focus COBOL routines
Db2® database products provide build scripts for compiling and linking Micro Focus COBOL embedded SQL and Db2 API programs. These are located in the sqllib/samples/cobol_mf directory, along with sample programs that can be built with these files.
About this task
The script, bldrtn, contains the commands to build routines (stored procedures). The script compiles the routine source file into a shared library that can be called by a client application.
The first parameter, $1, specifies the name of
your source file. The script uses the source file name for the shared
library name. The second parameter, $2, specifies
the name of the database to which you want to connect. Since the shared
library must be built in the same instance where the database resides,
there are no parameters for user ID and password.
Only the first
parameter, source file name, is required. Database name is optional.
If no database name is supplied, the program uses the default sample database.