Before building a switch module for DB2, ensure your LIB environment variable contains the path to your DB2 LIB directory. If you want to connect to IBM DB2 data sources using JES-initiated tasks via IKJEFT01, you must build an additional module.
To build a standard IBM DB2 switch module, execute the build command as follows:
build db2
To connect to IBM DB2 data sources from JES-initiated tasks, you must build an additional switch module. Execute the build command as follows:
build db21pc db2_database_alias [db2_userid db2_password]
db2_database_alias | The database alias cataloged to the DB2 client on the machine where Enterprise Server is running |
db2_userid db2_password | The user ID and password for connecting to DB2; required only if different from the user ID and password for the user currently logged in |
This additional module must be loaded by the main switch module; therefore include the full path to it in your system's environment variable.