I have observed record-count anomalies between BKUPHIST and REPORT with COPY
1) I issued BKUPHIST HIST1:
The backup dataset contained 1946 records.
2) I invoked REPORT and specified COPY DSNAME(target-of-copy-dsn) ALL
A message is displayed indicating that 1470 RECORDS WRITTEN TO DATASET target-of-copy-dsn
Why the difference in record counts?
HISTFILE can contain data for Application report as well.
Release : 12.0
Component : CA ESP WORKLOAD AUTOMATION
HISTFILE can contain data for Application report as well. So REPORT COPY should run twice, one for JOB and one for APPL.
Below can be added to the REPORT JCL, so that application data can be copied over:
COPY DATASET(HISTCOPY) ALL EXTEND