Running CA CopyCat jobs for multi-volume and multi-file chains under CATALOG control results in Catalog RC N12 for some files: For example:
Original Data Set Name
Output Data Set Name File Creation Expiration Catalog RC
Does this mean, that the TMC is not in sync with the z/OS Catalog?
Following control statements were used:
//SYSIN DD *
Release : 14.0
Component : CA 1 Tape Management Copycat Utility
The N12 in the Catalog RC is caused by running FILECOPY with FILES=ALL. In this case all files from a multifile tape are copied, including the expired files for which a catalog entry might no longer exist. Because of RECATLG=PREV, copycat issues a locate, does not find the file in the catalog and sets the Ctlg RC field in the report to N12.
There is nothing wrong here and N12 is expected for a data set that has expired and which was under CATALOG control.
This can prevented by using FILES=ACTIVE. In this case only the unexpired files are copied, for which we still should have the related catalog entry.