Compiling an RSP with DB2

Compile and link-edit the RSP in the standard manner for CICS command-level programs. If the RSP accesses DB2, be sure the RSP is processed by the DB2 precompiler program before running it through the CICS precompiler. In addition, you need to bind the resulting application plan. Be sure that your systems administrator grants users EXECUTE authority on the RSP plan and package. See Mainframe Connect DB2 UDB Option for CICS Installation and Administration Guide for details.

Use the following figure as a guide when performing steps to compile an RSP with DB2.

Figure 4-2: Compiling an RSP with DB2

The figure shows how to compile with DB2.

Figure 4-2 shows the tasks necessary to compile an RSP with DB2:

  1. Run the RSP source program through the DB2 precompiler.

  2. Run the RSP source program through the CICS precompiler.

  3. Compile and link-edit the RSP source program with the stub routines.

    The RSP load module is created.

  4. Bind the database request module (DBRM) created in the DB2 precompile process to DB2 as a plan or package.

For more information on linking, see “Understanding the linkage”.