Overview
Sites planning their next Db2 for z/OS release upgrade keep finding the same item on the critical path: deprecated objects, and tablespaces above all. IBM's position is unambiguous. The non-UTS tablespace types remain supported today but will be unsupported in a future release, and the advice is to convert them as soon as possible.
The ALTER statement itself is not the difficulty. Every conversion is a pending definition change that Db2 materializes at the next reorganization of the object, so a conversion project is really a reorganization campaign: thousands of objects to find, a statement to write for each one, and a REORG to run for each one, all competing with the batch schedule and invalidating packages as they go.
TUC handles the conversion through policy. A policy rule identifies the tablespaces that have not been converted, the ALTER statements each one needs are generated and held with the object, and they are executed immediately before the REORG that the policy orders, which materializes them in the same job. Conversion becomes part of routine maintenance instead of a project that needs a window of its own.
| Capability | What It Means |
|---|---|
| Automatic identification | A policy rule evaluates the catalog and identifies every tablespace that still carries a legacy definition. New objects are always created as universal tablespaces, so the population only shrinks, and each pass shows exactly what is left. |
| Generated statements | What each object needs is generated automatically: MAXPARTITIONS for a non-partitioned tablespace, SEGSIZE for a partitioned one, relative page numbering, and table-controlled partitioning where an index still controls it. |
| No separate window | The ALTER is executed in the step immediately before the REORG, so the change is materialized by that same job and nothing is left pending. Conversion uses the maintenance window that was already scheduled. |
| Application awareness | Tablespaces held by a long-running application claim and objects in restricted states are left alone, and jobs are handed to your scheduler with the dependencies they need. |
| Package protection | Materializing the change clears the object's entries from SYSPACKDEP, so the dependent packages are collected before the ALTER runs and rebound once the REORG completes. Any access path change is compared against the previous path and rejected or switched back. |
| Progress reporting | What is left comes from the same rule that drives the work, database by database and run by run. The report and the plan are the same object. |
Why Deprecated Tablespaces Must Be Converted
Current Db2 already treats the deprecated tablespace types as legacy. A CREATE TABLESPACE statement running at application compatibility level V12R1M504 or higher always produces a universal tablespace, and a CREATE TABLE that names a non-UTS tablespace returns an error. What remains is everything built before that point, often the oldest and busiest objects in the subsystem, carried forward through release after release.
The work is bounded. Because current Db2 creates only universal tablespaces, the legacy population does not grow, and every object converted is permanent progress. Until the objects are counted, however, the size of the job is unknown.
What Each Legacy Definition Becomes
| Current Definition | Target Definition |
|---|---|
| Simple or segmented (non-UTS) tablespace holding one table | A partition-by-growth universal tablespace, by setting MAXPARTITIONS. |
| Partitioned (non-UTS) tablespace | A partition-by-range universal tablespace, by setting SEGSIZE. |
| Index-controlled partitioning | Table-controlled partitioning, which the universal type requires. |
| Partition-by-range tablespace with absolute page numbering | Relative page numbering. Absolute page numbering is deprecated for PBR tablespaces. |
| Multi-table segmented tablespace | One tablespace per table, moved with ALTER TABLESPACE MOVE TABLE and materialized by a REORG of the source tablespace. |
Why Conversion Projects Stall
Each item in the table above is a catalog query, an ALTER and a REORG. The queries must be repeated, because the answer changes with every REORG that runs. The ALTERs are simple individually and hard to manage in bulk. The REORGs are the real cost: they have to fit the windows, avoid the objects applications are using, take account of the size of what they are moving, and leave packages and access paths in an acceptable state.
Those REORGs are not extra work, because the subsystem is already being reorganized. The conversion only has to be carried out together with them.
How TUC Converts Tablespaces
| Step | Phase | What Happens |
|---|---|---|
| 1 | Identify | A policy rule finds every tablespace that has not been converted, each time the policy is enforced. |
| 2 | Prepare | The ALTER statements that convert the object are generated and held with it. |
| 3 | Convert | The statements are executed in the step immediately before the REORG, which materializes them. |
| 4 | Track | Converted objects stop qualifying. What the rule still selects is the work that is left. |
Identification and Statement Generation
The rule is shipped disabled by default, so nothing happens until you enable it. Once it is enabled, enforcing the policy identifies the tablespaces that still carry a deprecated definition, generates the statements that convert each of them, and orders the REORG that materializes the change. A tablespace that needs more than one change, for example index-controlled partitioning and a missing SEGSIZE, receives the statements in the order Db2 requires.
The same generated statements can be applied selectively: one database at a time, or a set of objects chosen from the dialog, with the conversion still materialized by an ordinary REORG. No special kind of job has to be written, reviewed, or scheduled for the conversion.
Controls That Apply to Conversion Work
Conversion work inherits every control that governs ordinary maintenance:
- Tablespaces that an application is holding with a long-running write claim are excluded, so a REORG is not attempted on an object it cannot drain.
- Objects in restricted states are skipped.
- Every conversion runs as an online REORG with SHRLEVEL CHANGE, and the required mapping objects are created and managed automatically.
- Where a profile is split for parallel processing, all partitions of a tablespace being converted are assigned to the same subprofile, so the entire tablespace is converted by one job.
You control the pace. Each run can be limited by the number of jobs, by the total size of the objects it moves, or by an elapsed time window, and the jobs are handed to your scheduler with their dependencies. You decide how much of the subsystem is converted each night.
Packages and Access Paths
Materializing a pending change invalidates the packages that depend on the object, and it also clears that object's entries from SYSPACKDEP. After the REORG has run, there is nothing left from which to identify those packages. TUC collects them before the ALTER is applied and rebinds them after the REORG has completed, in the same job stream.
Rebinds can be run with the Db2 access path stability options, so that a package whose access path would change is either blocked or rebound and then switched back to its previous path automatically, with every change recorded for review.
Tracking Progress
Before anything is ordered, the policy can run in reporting mode: it lists every tablespace that still needs conversion, by database, without altering any object or generating any job. Because this list comes from the rule rather than from a spreadsheet, it is accurate on the day it is run. As the conversion proceeds, converted objects drop out of it. Job and order history records what ran, when, and how long it took, so the remaining schedule can be forecast from actual run times.
After the Conversion
The setup that delivers the conversion is the same setup that delivers automated maintenance. Objects are grouped into profiles, policy rules and thresholds are defined, jobs are generated from skeletons, and the scheduler is driven through its own interface. Conversion is one rule inside that framework.
When the last deprecated tablespace has been converted, the framework remains in place. Reorganization, statistics collection and backups continue to be triggered from real-time statistics, so each object is processed when its condition justifies it rather than on a fixed calendar, and unnecessary work is suppressed where measurements show that access has not degraded.
Recommended First Step
Start with a report. Enforcing the rule in reporting mode lists every deprecated tablespace in scope without altering an object or generating a job. That output shows how much conversion work there is and where it is. From there, proceed incrementally:
- Enable the rule for one database.
- Let the next maintenance cycle convert it.
- Confirm the result.
- Widen the scope at the pace your maintenance windows allow.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article