Noticed DEFRAG and CXX Report numbers don't match up.
search cancel

Noticed DEFRAG and CXX Report numbers don't match up.

book

Article ID: 14649

calendar_today

Updated On:

Products

Datacom DATACOM - AD CIS COMMON SERVICES FOR Z/OS 90S SERVICES DATABASE MANAGEMENT SOLUTIONS FOR DB2 FOR Z/OS COMMON PRODUCT SERVICES COMPONENT Common Services CA ECOMETER SERVER COMPONENT FOC Easytrieve Report Generator for Common Services INFOCAI MAINTENANCE IPC UNICENTER JCLCHECK COMMON COMPONENT Mainframe VM Product Manager CHORUS SOFTWARE MANAGER CA ON DEMAND PORTAL CA Service Desk Manager - Unified Self Service PAM CLIENT FOR LINUX ON MAINFRAME MAINFRAME CONNECTOR FOR LINUX ON MAINFRAME GRAPHICAL MANAGEMENT INTERFACE WEB ADMINISTRATOR FOR TOP SECRET Xpertware

Issue/Introduction

ran a 3 steps job,

1- First step is a DBUTLTY COMM=STATS and CXX REPORT TYPE=A.  The index used blocks in first step show 885,469.

2- The second step is a DEFRAG, the report shows 792,603 blocks deleted. 

3- The final step shows the index used blocks, after the DEFRAG, with 807,719. 



If the DEFRAG report is accurate, the CXX report, should show only 92,866 blocks used.

One of the reports seems wrong, but which one?   

Environment

z/os, CA Datacom/DB 15.0

Resolution

The most accurate report is the CXX report if one is wanting values for a grand total. 

Additional Information

Also, note that there is a printed statistic of "blocks deleted". This contains two things.

The first is DXX blocks which DEFRAG found already deleted but which the index queue has not yet processed.

The second are blocks which the DEFRAG itself deletes. These are typically blocks which are combined with other blocks, but they may also be something like a cleanup of logically deleted entries which were still physically present in the DXX when DEFRAG ran.

Hence DEFRAG can be used as a form of DXX TSN cleanup. 

... 

So, the Deleted Blocks by DEFRAG cannot be necessarily seen reported in the next CXX report as we may expect. Your Database may be or was very fragmented or disorganized. 

Other remark:

"The DEFRAG and its report deal with the DXX only.

The CXX report is IXX and DXX."

 

See CA Datacom/DB DBUTLTY REFERENCE GUIDE - DEFRAG FUNCTION for more info.