Catalog RC N12 running FILECOPY for Data Sets under CATALOG Control
search cancel

Catalog RC N12 running FILECOPY for Data Sets under CATALOG Control

book

Article ID: 138985

calendar_today

Updated On:

Products

CA 1 Flexible Storage CA 1 Tape Management - Copycat Utility CA 1 Tape Management - Add-On Options

Issue/Introduction

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

                                                         Seq#                      Date       TIME        

 

AB.CDEF.GHIJKLM.NOPQRST.P00000.D0531.T1810           1 2019/151   20.10  2019/296   G23677  SL   N12  36X238KC             

  AB.CDEF.GHIJKLM.NOPQRST.P00000.D0531.T1810         1 2019/151   20.10  CATALOG    RP5278  SL        36TK38KC             

AB.CDEF.GHIJKLM.NOPQRST.P00000.D0531.T1810           2 2019/151   20.10  2019/296   G23677  SL   N12  36X238KC               

  AB.CDEF.GHIJKLM.NOPQRST.P00000.D0531.T1810         2 2019/151   20.10  2019/161   RP5278  SL        36TK38KC

 

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

Environment

Release : 14.0

Component : CA 1 Tape Management Copycat Utility

Resolution

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.