When I run the CA DISK MVDICT report with the following SYSIN syntax:
The report shows a final line with the TOTAL DATA SETS number found.
However, if I produce a flat file from the output of that report with one line for each entry reported the number of lines generated exceeds the TOTAL DATA SETS number.
How can this be explained?
The flat file produced most probably shows duplicate dataset names that reside on different volumes. For example:
ABCD.EXAMPLE1.CICS1A.D12345 VOL111 3390
ABCD.EXAMPLE1.CICS1A.D12345 VOL222 3390
ABCD.EXAMPLE2.CICS1A.D12345 VOL111 3390
ABCD.EXAMPLE2.CICS1A.D12345 VOL222 3390
In this example , we have 4 lines in the report, but they actually refer to just two datasets , namely:
The MVDICT report will total on datasets, rather than on number of occurrences of a dataset.
In this example, the MVDICT report may have shown TOTAL DATA SETS 250 while the flat file would have had a count of 252 lines.
This behavior of the MVDICT report is documented in the CA DISK USER GUIDE, in chapter 5 , in the section describing the MVDICT report:
"Generate a report (see MVDICT) of data set attributes listed in alphabetic sequence without regard to volume. Allocation data is included for each data set. Multiple volume data sets will appear on the report with one line for each volume they reside on, but note that for the count of 'TOTAL DATA SETS ' - they are counted as one."