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
AB.CDEF.GHIJKLM.NOPQRST.
AB.CDEF.GHIJKLM.NOPQRST.
AB.CDEF.GHIJKLM.NOPQRST.
AB.CDEF.GHIJKLM.NOPQRST.
Does this mean, that the TMC is not in sync with the z/OS Catalog?
Following control statements were used:
//SYSIN DD *
FILECOPY
MERGE=NO
INUNIT=VSM
OUTUNIT=VTS
COMP=YES
FILES=ALL
RECATLG=PREV
SAVEINFO=YES
INDISP=RETPD=1
OUTDISP=SAME
USEREXIT=NO
SORT=YES
INPUT=VOLSERIN
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.