The bind process

Before a CICS® application that accesses Db2® can run, it must go through the bind process.

For the bind process, you require:
  • Db2
  • The DBRM (database request module) produced by the Db2 precompiler for each program in the application.

The DBRM contains the SQL statements that the Db2 precompiler has extracted from the application program. In the bind process, the SQL statements in the DBRM are put into an operational (“bound”) form, by being translated into the control structures that Db2 uses when it runs SQL statements. The resulting material can be made into a package, or it can be placed straight into an application plan (see Plans, packages and dynamic plan exits). The whole process is called “binding” the DBRM. For more information on binding, see Programming for Db2 for z/OS in Db2 for z/OS product documentation. See Bind options and considerations for programs for more detail on options you should choose during the bind process in the CICS Db2 environment.