Verifying a successful package build at the target host

For DB2 UDB (Windows and Linux) hosts:

  1. Start the Control Center.

  2. Select the Target system/instance/database.

  3. Select Application Objects in the left pane.

  4. Double-click the Packages icon.

  5. Locate the package name in the right pane.

    image\db2pkg26.jpg

  6. Click the Package name (PKG01).

  7. Right-click on the Show Explainable Statements menu item.

  8. In the Explainable Statements window, click on a statement number and right-click to select Show SQL Text.

    image\db2pkg28.jpg
    Note that the original dynamic SQL example statement above has been bound as

Select EMPNO from db2admin.employee where empno > :H00001

 

For OS/400 hosts:

  1. Log on to the target OS/400 machine using a 5250 terminal emulator product. At the command line, type the following:

PRTSQLINF

  1. Press <F4>.

  2. Type the package name next to Object = PKG01.

  3. Type the target Library name.

  4. Type the Object Type = *SQLPKG.

  5. Press <Enter>.

    image\db2pkg31.jpg

    The output is spooled. Use the WRKSPLF command to locate the output created by the PRTSQLINF command, and then display the output via the WRKSPLF command as shown in the following example:

    image\db2pkg35.jpg