Before you move an application to a new application compatibility level, you need to find
application incompatibilities, adjust your applications for those incompatibilities, and verify that
the incompatibilities no longer exist.
Procedure
-
Start a trace that includes IFCID 0239 to capture package information.
For example, issue the following START TRACE command:
-START TRACE(ACCTG) CLASS(7,8,10)
-
Examine the trace output.
IFCID 0239 field QPACFLGS contains a bit that is on if a package contains incompatibilities. If
this bit is off, no incompatibilities were detected, and you can skip the rest of the steps. If this
bit is on, proceed to step 3.
-
Start a trace for IFCID 0376 to report incompatibility information about the packages.
For example, issue the following START TRACE command:
-START TRACE(PERFM) CLASS(32) IFCID(376)
-
Run the application.
-
Examine the trace output.
IFCID 0376 fields contain information about the incompatibilities.
Db2 writes a single trace record for each SQL statement that is
incompatible with the subsequent Db2 function level. See file
prefix.
SDSNIVPD(DSNWMSGS) for listings of the IFCID 0239 and
0376 trace records.
-
Revise the application to avoid any application incompatibilities.
-
Prepare the application for execution. When you bind the packages for the application, use the
old APPLCOMPAT value.
-
Run the application.
-
Examine the trace output again to verify that the incompatibilities no longer exist.
What to do next
When the application runs at the old level with no application
incompatibilities, rebind the package with the APPLCOMPAT value for the new function level.