If, as Sergi suggested, you want the catalog statistics (not RTS), the following is the replacement for DSN8PLI - used to generate DDL and update statements for statistics
https://www.ibm.com/docs/en/db2-for-zos/13.0.0?topic=db2-admin-info-sql
I have found this messy because the output datasets are generated under the WLC STC's userid.
https://www.ibm.com/docs/en/db2-for-zos/13.0.0?topic=utilities-dsnadmsb
which is what the SP actually uses
https://www.ibm.com/docs/en/db2-for-zos/13.0.0?topic=zos-dsntej6i
If you raise a service request about access performance IBM will probably ask you to use this to generate something they can use to recreate your DDL/statistics.
------------------------------
James Campbell
------------------------------
Original Message:
Sent: Wed February 04, 2026 02:37 PM
From: Linda Hagedorn
Subject: RTS Real-time Statistics - copying from prod to non-prod
Does anyone have a process to copy real-time stats from prod to non-prod?
There are 2.3b rows in the largest table in our prod system.
The SQL is TS scanning due to a 'NOT' and cardinality on the index key order.
I've recommended a new index, but need prod RTS to run the EXPLAIN on non-prod.
There's insufficient data on non-prod for an EXPLAIN with the new index.
Wasn't there talk of a pseudo-what-if index tool, or was it just wishful thinking?
------------------------------
Linda Hagedorn
------------------------------