How can I copy tapes from an STK VTS to an EMC Data Domain using CA Copycat ?

Document ID : KB000038551
Last Modified Date : 14/02/2018
Show Technical Document Details

Summary:

I am migrating from an STK VTS to an EMC Data Domain and I need to copy a lot of tapes.

I plan to create a new tape volume range and it will be selectable using SMS classes.

The largest group has names like ARCHIVE.FILEB or ARCHIVE.FILEC and there are 100s of them.

 

Instructions:

CA Copycat has a FILECOPY and TAPECOPY function. TAPECOPY was designed to replace existing tapes 1:1 and
does not maintain multi-files.


The FILECOPY function should be used to migrate your tapes from an STK VTS to an EMC library.

 

CA Copycat FILECOPY needs a list of VOLSERs as input.

In order to create such a volume list, you can use the TMSGRW utility.

 

1. Execute the TMSGRW utility and include the OUTPUT DD statement in the JCL to create a volume list:

 

//*OUTPUT  DD  DSN=TAPES.REPORTED.ON,             * OPTIONAL *
//*              DISP=(NEW,CATLG,DELETE),
//*              UNIT=TAPE,
//*              DCB=(RECFM=FB,LRECL=340,BLKSIZE=23460)

//*    ABOVE BLKSIZE SHOULD BE A MULTIPLE OF 340



The data set created by the OUTPUT DD can be used as a VOLSER list for the FILECOPY function.

Note: You need only supply the base volser of a multi-volume, or multi-file set, and it automatically copies every
chained Volume or DSNB. 

 

Sample TMSGRW control statements are provided below for guidance on generating various types of reports.

 

i) Use the below sample control statements to generate a report of Non-scratch tapes with VOLSEQ = 1 :- 

*----------------------------------------------------------
* REPORT ON NON SCRATCH VOLUMES
* AND VOLSEQ = 1
*----------------------------------------------------------
CONTROL-SECTION
*
TITLE 'NON SCRATCH VOLSERS WITH VOLSEQ = 1'
ALTER DSNB=NO
DEFINE SCRBIT HX '04'
DEFINE VSEQ HX '01'
*
PROCESS-SECTION
*
WHEN FLAG1 OFF SCRBIT
AND VOLSEQ EQ VSEQ
LIST
*
REPORT-SECTION
*
PRINT VOLSER
PRINT DSN
PRINT EXPDT
PRINT CJOB
PRINT CPGM
PRINT CSTEP
PRINT CDATE
*

 

ii) Use the below sample control statements to generate a report of Non-Scratch volumes which have a
Volume prefix = "VS" and VOLSEQ  = 1 :-  



*----------------------------------------------------------
* REPORT ON NON SCRATCH VOLUMES STARTING WITH VS
* AND VOLSEQ = 1
*----------------------------------------------------------
CONTROL-SECTION
*
TITLE 'NON SCRATCH VOLSERS WITH PREFIX VS'
ALTER DSNB=NO
DEFINE SCRBIT HX '04'
DEFINE PREFIX CH 'VS'
DEFINE VSEQ HX '01'
*
PROCESS-SECTION
*
WHEN FLAG1 OFF SCRBIT
AND PREFIX EQ VOLSER
AND VOLSEQ EQ VSEQ
LIST
*
REPORT-SECTION
*
PRINT VOLSER
PRINT DSN
PRINT EXPDT
PRINT CJOB
PRINT CPGM
PRINT CSTEP
PRINT CDATE
*


 


iii) Use the below sample control statements to generate a report of Non-Scratch volumes which have a
certain DSN Prefix (yourHLQ) and VOLSEQ = 1 :-


*----------------------------------------------------------
* REPORT ON NON SCRATCH VOLUMES AND VOLSEQ=1 FOR A
* DATASET PREFIX/HLQ
*----------------------------------------------------------
CONTROL-SECTION
*
TITLE 'NON SCRATCH VOLSERS BY DATSET PREFIX'
ALTER DSNB=NO
DEFINE SCRBIT HX '04'
DEFINE DPREFIX CH 'yourHLQ'
DEFINE VSEQ HX '01'
*
PROCESS-SECTION
*
WHEN FLAG1 OFF SCRBIT
AND DPREFIX EQ DSN
AND VOLSEQ EQ VSEQ
LIST
*
REPORT-SECTION
*
PRINT VOLSER
PRINT DSN
PRINT EXPDT
PRINT CJOB
PRINT CPGM
PRINT CSTEP
PRINT CDATE
*

 

2. Execute the CA COPYCAT utility FILECOPY function, using the below sample control statements :

//VOLLIST DD DISP=SHR,DSN=output.file.from.TMSGRW

//SYSIN DD *
FILECOPY
FILES=ACTIVE
RECATLG=PREV
INDISP=RETPD=2
MERGE=NO
OUTDISP=SAME
INUNIT=3480
OUTUNIT=3480
SAVEINFO=YES
INPUT=VOLLIST
/*

  • The above control statements use the VOLSER list from TMSGRW pointed to by the VOLLIST DD.
  • Only active datasets will be copied and they are re-catalogued if the input was catalogued.
  • The input EXPDT is updated with a 2 day retention and the output EXPDT is the same
    as the original INPUT EXPDT.
  • MERGE=NO is specified to prevent creation of large multivolume/multifile chains.
  • MERGE=NO copies all files from an input multi-volume or multi-file set and when finished asks for a new scratch tape.
  • SAVEINFO=YES is used to save the original creation information (except creation unit).

 

 

IMPORTANT NOTE:
To copy tapes that are under External Data Manager (EDM) control in CA 1 or CA TLMS, use the tape copy
utilities provided by your EDM product such as CA Disk or IBM DFSMShsm.
The tape copy utilities of the respective EDM product keep the EDM's database updated with the correct
volume serial number and file sequence for all tape data sets.



Additional Information:

Refer to the CA Copycat User Guide for full details.

Best Practices Guide section Copycat and External Data Manager Tapes