Every Db2 for z/OS site has to back up, reorganize and collect statistics on thousands of objects, and most still do it on a calendar or with home-grown scripts. The calendar processes objects that do not need it and reaches the ones that do too late. The scripts keep running, but they do not keep up with new objects, new Db2 functions or a shrinking batch window, and every change to them is more work for a small DBA team.
TUC, short for Total Utility Control, is a software product that automates Db2 for z/OS utilities. It decides which objects really need COPY, REORG, RUNSTATS, rebind or any other utility, from the Db2 real-time statistics, the catalog and measured access performance. It then generates the utility jobs, hands them to the scheduler the site already uses, tracks them to the end and records the result. The DBA team sets the policy. TUC applies it to every object, every day, including the objects created since yesterday.
TUC at a Glance
Maintenance on Evidence — Utilities run when an object needs them, judged from rates of change, its condition and how efficiently Db2 really reads it, not from a calendar.
Every Utility, Every Object — Backup and recovery, REORG, RUNSTATS, rebind, space management, unload and load, DSN1COPY, log analysis and more, for every kind of Db2 object.
Within the Window — The most urgent objects first, as many as fit the window, with jobs running in parallel and handed to your scheduler.
Existing Jobs Come Along — Utility jobs already in the application batch flow can run under TUC control without any change to their JCL.
Results You Can Show — The CPU and hours saved, the effect of every REORG and the state of every request, visible in a web dashboard.
Installed in Hours — No SMP/E, built-in best-practice policies and a test database of its own, so the first automated runs can happen the same day.
What TUC Does
TUC works in three steps that repeat all the time: it identifies the objects that need work, generates the utilities and jobs for them, and executes those jobs under control.
Identify
TUC examines the Db2 catalog and real-time statistics for every object, together with restricted and advisory states, the image copy history, the log inventory, growth rates, Db2's own autonomic statistics alerts and access performance measured from a low-cost Db2 statistics trace. Policy rules turn those facts into candidates for each utility. Objects that need nothing are left alone, newly created objects are covered automatically, and objects the site wants to keep out of automation can be excluded.
Generate
Objects are grouped for uniform processing, by database, by name patterns, by size, by volume or by the legacy job that used to process them. Utility options are set once for the whole subsystem and refined per group or per run. TUC generates the utility statements and the jobs from templates the site can adapt, and refreshes them by itself whenever an object is created or dropped, an option changes or a template changes. Statements that have not changed are reused instead of being generated again.
Execute
Utility work is requested through one central queue, by the policy, by a DBA or by an application job. Requests are processed automatically: postponed while an application holds the objects, split across parallel jobs, and handed to the scheduler with the dependencies they need. TUC tracks the status and progress of every job and records failures, so a failed run restarts from the object where it stopped instead of from the beginning.
What TUC Automates
| Area | What TUC Does |
| Backup | Copies objects by their real rate of change, takes incremental copies when they are safe and full copies when a recovery needs them, and verifies that every object is covered in every backup cycle. |
| Recovery | Generates recovery jobs for a table, a tablespace, a group of objects, a disk volume or a whole subsystem, to the current time, to a named point or to a quiet time found in the log. Named recovery points are checked for events that would make them unusable, and recovery can be rehearsed against production copies while production stays online. |
| REORG | Reorganizes objects whose condition and measured access performance call for it, or whose space is at risk, the most urgent first and only as many as fit the window. |
| Statistics | Runs RUNSTATS when the data has changed enough to matter, and follows Db2's autonomic statistics alerts and statistics profiles. |
| Rebind | Rebinds dependent packages after maintenance, compares every changed access path, and switches back or prevents any change for the worse. |
| Space | Calculates the space each tablespace and index needs, resizes objects before REORG, adjusts free space from overflows and page splits, evaluates compression, and warns about growth before it causes an outage. |
| Test data | Refreshes test environments with DSN1COPY: matches every source dataset to its target, translates the internal ids, checks that the physical attributes agree and copies in parallel. Unload and load are automated as well. |
| Accelerated tables | Detects utilities that changed IBM Db2 Analytics Accelerator tables without logging, and reloads the accelerator copies in the right order. |
| Modernization | Converts deprecated tablespaces to universal tablespaces as part of the REORGs that run anyway, with no window of their own. |
| Logs and checks | Generates log analysis, CHECK DATA, CHECK INDEX and the other Db2 utilities and stand-alone utilities, more than thirty in all. |
Every Db2 object type is covered: partition-by-growth and partition-by-range tablespaces, LOB and XML objects, clone, history and archive tables, accelerated tables, partitioned and non-partitioned indexes, and compressed and read-only objects.
How TUC Decides
Rules, Not Schedules
The policy is a set of rules for each utility. A rule can test the real-time statistics, the catalog, the image copy history, the log inventory, the growth of an object or tables the site maintains itself. TUC ships with a best-practice policy that works from the first day, and every threshold can be tuned. Before a rule is trusted to act, its candidates can be reported and reviewed, so the DBA team sees exactly what the rule would do.
Performance, Not Just Structure
An object can look disorganized and still perform perfectly well. TUC collects the getpage and synchronous I/O counters for every object from a low-cost Db2 statistics trace and turns them into one measure: getpages per synchronous I/O. A REORG candidate whose measure has not fallen is left alone and its CPU is saved. Objects running out of space are reorganized regardless, so availability is never traded for savings. The measure is kept from before and after every REORG, so the effect of each one is a number, not an assumption.
The Most Urgent First
Conditions are measured on different scales, so TUC ranks every candidate by percentile and gives the objects in the worst condition the highest priority. When there are more candidates than the window can hold, TUC limits the work to a quota by number of objects, by megabytes or by time, calculated from how fast past REORGs ran. The most urgent objects are always the ones that get done.
How TUC Runs the Work
One Controlled Queue
Every utility request goes through the same queue, whoever placed it. Users and application jobs can be allowed to request maintenance for their own objects without holding the authority to run utilities themselves, and the requests are processed under the supervision of the DBA team. Every request is recorded with who placed it, when it ran, which jobs it used and how it ended.
Your Scheduler, Your Batch Flow
TUC hands its jobs to Control-M, IBM Workload Scheduler (TWS) or the Db2 administrative task scheduler, with the conditions and dependencies they need. Jobs can be defined on demand, released from a fixed schedule, or placed inside the application batch flow, where an application job requests maintenance at the point that makes business sense and waits for it to finish before going on. Utility work no longer collides with application processing.
Existing Utility Jobs Without Changes
Most sites already have hundreds of utility jobs embedded in their application schedules. TUC can take control of those jobs as they are: when a job the DBA team has chosen calls a Db2 online utility, TUC takes over the execution and applies its own policy, while the application flow keeps running exactly as before. No JCL is changed and no job is rewritten. TUC also keeps an inventory of every utility job that runs on the subsystem, detects new ones automatically, and shows how far the move to automation has come.
Where TUC Fits
| Question | Answer |
| Which Db2 versions? | Current Db2 for z/OS versions, in all function levels, with or without data sharing. A data sharing group is set up once, through its group attach name. |
| Which utilities? | IBM Db2 utilities and the utilities of other vendors, including BMC and Broadcom (CA). Several vendors can be used side by side, for example one vendor's COPY for daily backups and another's for weekly backups, chosen per utility, per group of objects or per run. TUC keeps the site independent of any one utility vendor. |
| Which schedulers? | Control-M, IBM Workload Scheduler (TWS) and the Db2 administrative task scheduler. |
| How large an installation? | Any number of subsystems, databases and objects. Definitions made on one subsystem can be exported and deployed to others. |
| Security? | Works with Db2 authorization and with RACF, Top Secret or other external security. TUC's own tables are protected by Db2 grants. |
| z/OS environment? | Current z/OS releases, JES2 and JES3, and SDSF or other job output facilities. Object names in EBCDIC or Unicode, long names and names with special characters are supported. |
| How is it used? | Through an ISPF dialog on the mainframe, through batch jobs that run the policy, and through a web dashboard for the DBA team, operations and management. Reports can be written as CSV or JSON for spreadsheets and other tools. |
Installation and Implementation
TUC is delivered as one complete package, not through SMP/E and individual PTFs. Installing it means transferring one file to the host, running the installation dialog, entering the license key and running one batch job that sets up the control database. The default setup works at once, and the customizations a site makes to templates and procedures are kept when a new release is installed.
TUC creates a test database of its own, with the different object types it handles, so its functions can be shown and tested out of the box before any production object is touched. The same test is used again after every upgrade to confirm the setup.
Implementation usually goes step by step. The daily refresh covers new objects from the first day; then COPY, REORG and RUNSTATS move under policy control one after another, and the existing utility jobs are brought under TUC control as the team chooses. Each step brings its saving on its own, so the return starts before the project is finished. Training, installation help and support are given by mail, by phone and by video session, during an evaluation and after it.
Who Uses TUC
TUC runs at banks, credit card companies and insurance companies, where the Db2 data is large, the batch windows are tight and recovery has to be certain. One customer, an insurance company in the United States with 15 Db2 subsystems in four LPARs and a small database team, automated REORG and RUNSTATS and its test data refresh with TUC. Routine maintenance that took the DBAs days every month now takes hours, the night calls for space failures stopped, a test data refresh that took three to four days now takes hours, and the whole implementation returned its full cost in its first year, counting only the staff time it saved.
Calendar, Scripts, Recommendations and TUC
Sites usually choose between three ways of running utilities before they automate them: jobs on a calendar, home-grown scripts that read the statistics, or the recommendations Db2 itself can give through its DSNACCOX stored procedure. Each of them answers part of the question.
| Task | Calendar Jobs | Scripts or DSNACCOX | TUC |
| Which objects | All of them, needed or not. | Those over a structural threshold. | Those over a threshold whose access performance or space shows a real need. |
| The jobs | Written once, then edited for every change. | A list of objects; the jobs are still the DBA's work. | Generated and refreshed automatically. |
| The window | Overrun when objects grow. | Not considered. | The most urgent first, as many as fit. |
| Applications | Collisions found when jobs fail. | Collisions found when jobs fail. | Work postponed while objects are held, or run inside the application flow. |
| After the utility | Rebinds skipped or done blind. | Rebinds skipped or done blind. | Packages rebound, access paths compared, degradations switched back. |
| Recovery | Procedures written for a few cases. | Not covered. | Recovery points verified and jobs generated for any scope. |
| Proof | None. | None. | The CPU saved and the effect of every REORG, recorded. |
In short — TUC (Total Utility Control) is the automation layer for Db2 for z/OS utilities. It decides from evidence which objects need COPY, REORG, RUNSTATS, rebind or recovery work, generates the jobs, runs them through your own scheduler within your window, brings your existing utility jobs along unchanged, and shows what it did and what it saved.
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