Running Datacom DBUTLTY VERINDEX function, the count of entries for a KeyID is different on the INDEXDATA report and the DATAINDEX report.
TABLE NAME - AGR
OCCURRENCE - AGGREGATE P012
TABLE ID - 17
RECORD LENGTH - 809 / 821
RECORDS IN TABLE - 1,911
. . .
KEY - NAME ID LENGTH MASTER NATIVE UNIQUE DIRECT KEY INC KEY USE
AGRSA 0202 64 NO NO NO NO NO ANY
KEY - NAME ID LENGTH MASTER NATIVE UNIQUE DIRECT KEY INC KEY USE
AGRSS 0202 64 NO NO NO NO NO ANY
KEYID KEYNAME MAST MATCH_COUNT ERROR_COUNT ST
202 AGRSA N 1716 0 LD
202 AGRSS N 1749 0 LD
KEYID KEYNAME MAST MATCH_COUNT ERROR_COUNT ST
202 AGRSA N 3465 0 LD
202 AGRSS N 3465 0 LD
z/OS
When looking at the VERINDEX function output like the above sample, there are different factors that lead to variances in the IndexData vs DataIndex values:
The result of all this is that you can compare VERINDEX output between multiple runs only on the same report - INDEXDATA to INDEXDATA or DATAINDEX to DATAINDEX, but you cannot necessarily compare INDEXDATA to DATAINDEX.
For more information on the VERINDEX function of DBUTLTY, please refer to the documentation : VERINDEX (Verify Index)