Activating Db2 13 function level 500 or higher
When you migrate a Db2 environment to Db2 13, it starts at function level 100. However, many new capabilities in Db2 13 remain unavailable until you activate function level 500 or higher. Also, all new-function capabilities that depend on Db2 catalog changes in Db2 13 remain unavailable until you activate function level 501 or higher.
Before you begin
Before you activate function level 500 or higher in Db2 13, you must complete the following tasks:
- In Db2 12, identify and resolve incompatible changes and activate function level 510 (V12R1M510). You can run the DSNTIJPE premigration queries job in Db2 12 to identify the incompatible changes. For more information, see Activate function level 510 in Db2 12.
- Verify that every member was restarted with the fallback SPE applied in Db2 12. Important: Inactive members that never started in Db2 12 with the fallback SPE (APAR PH37108) applied cannot start after the first data sharing member is migrated to Db2 13 at function level 100.
- If your Db2 environment contains PBR RPN table spaces, APAR PH61633 is an important PE fix that you must apply on all data sharing members before migrating to or activating function levels in Db2 13.Attention: If your Db2 environment contains PBR RPN table spaces, do not migrate any data sharing members to function level V13R1M100, or activate function level V13R1M500 or higher, until you apply the PTF for PH61633 on all data sharing members and complete all ++HOLD actions. For more information, see the 21 June 2024 Red Alert.
- Migrate the Db2 subsystem or data sharing group to Db2 13, as described in Migrating a Db2 for z/OS subsystem to Db2 13 at function level 100 or Migrating an existing data sharing group to Db2 13.
- Verify that you no longer need to fall back to Db2 12. Important: After function level 500 is activated in Db2 13, coexistence and fallback to Db2 12 are no longer possible. You can activate function level 100* to disable new capabilities in Db2 13, but function level 100* does not support coexistence or fallback .
- In data sharing, ensure that the group has no active Db2 12 members. See Migrating subsequent members of a group to Db2 13.
About this task
Continuous delivery in Db2 13
The availability of most new-function application capabilities in Db2 13 depends on the type of enhancement, the activated function level, and the application compatibility levels of each application. For a list of all available function levels that are currently available in Db2 13, see Db2 13 function levels.
Many new-function enhancements take effect at any function level when you apply a PTF in each Db2 subsystem or data sharing member. For more information, see New-function APARs for Db2 13.
The following table describes the main function levels that are used in the Db2 13 migration process.
| Function level | Description |
|---|---|
| FL 100 | Db2 starts at function level 100 (V13R1M100) during migration to Db2 13, and fallback and coexistence with Db2 12 in data sharing remain possible. Many new capabilities in Db2 13 remain unavailable. For more information, see Function level 100. |
| FL 500 | Activating function level 500 (V13R1M500) prevents coexistence with and fallback to Db2 12. Function level 500 is also the first opportunity for applications to use many of the new capabilities in Db2 13. However, new capabilities that depend on Db2 13 catalog changes remain unavailable. For more information, see Function level 500. |
| FL 500 1 | Function level 501 (V13R1M501) is the first opportunity after migration to Db2 13 for applications to use new features and capabilities that depend on catalog changes in Db2 13. For more information, see Function level 500. |
- After you activate function level 500, you can use a single procedure to activate any higher function level that is available based on the code level of your Db2 environment. Activating a function level also implies activation of all lower function levels. For a list of all available function levels and specific activation procedures for each one, see Db2 13 function levels.

Procedure
To activate new-function capabilities function in Db2 13, use one of the following approaches:
What to do next
Complete any of the following actions:
- If the new function level includes optimization enhancements, Db2 must process a full prepare before any SQL statements can benefit. Whether a full prepare occurs depends on the statement type:
- For static SQL statements, after bind or rebind of the package.
- For non-stabilized dynamic SQL statements, immediately, unless the statement is in the dynamic statement cache.
- For stabilized dynamic SQL statements, after invalidation, free, or changed application compatibility level.
- If you did not run the jobs to update the APPLCOMPAT and SQLLEVEL subsystem parameters, resolve any application incompatibilities and increase the application compatibility level of your applications after you are satisfied that Db2 is stable at the target function level, as described in Controlling the Db2 application compatibility level.
- If you encounter regressions or other problems when you activate a Db2 13 function level, minimize the impact to your applications while you resolve the problems by following the general approaches described in Activating lower (*) function levels in Db2 13.
- You might need to update COPY, RECOVER, and REBUILD INDEX utility jobs to add new or remove obsolete Db2 catalog objects. When a utility encounters the following situations for Db2 catalog objects, it issues message DSNU1530I:
- The object is no longer used or no longer exists.
- The object is created in a higher catalog level or function level.
For best results, make these updates the utility jobs after you activate the function level that the changes support. For more information about the catalog changes in Db2 13, see Catalog changes in Db2 13.
