If you produce an archive tape without a duplicate copy, it is possible to create a copy after the fact. There are also other reasons why you may want to copy an archive tape. If you had a primary and duplicate copy, but the primary copy was lost, damaged, or otherwise not available, you may want to copy the duplicate copy to regain the protection in having two tapes.
CA Disk must keep track of multiple copies of archive tapes, so when it makes a copy of an existing archive tape, the volume serial of the new copy is recorded in the index of the volume record for which the copy is made.
RESET Command - If you are using the copy utility to replace a volume that is no longer available, you must also use the RESET command. See for instructions on how to DISABLE the volume that is no longer available.
For example, if primary volume A has copy volume B, A —> B in the archvols entry. If A is destroyed and you want to create another copy C, use B as input to the copy utility, resulting in A —> B —> C. To create another copy D, use C as input to the utility, such that the pointer chain from A to B to C to D is kept intact. If A is destroyed, disable it. If B is destroyed, disable it. As long as the chain is intact, disabled entries will be bypassed automatically by restore, recover and merge functions.
The volumes to be copied must already have entries in the CA Disk archive tape record index (ARCHVOLS). An input stream contains records indicating the keys to the archive tapes that are to be copied. They are read from the COPYFILE DD statement. Beginning in columns 1 through 16, enter the 6-byte volume serial of the tape volume to be copied. (If you are copying an archive data set residing on disk rather than tape, enter the 6-byte key to the disk archvols record.) Only one key can be supplied per statement. Multiple statements can be entered to copy multiple volumes.
Note: Only the first volume of a multivolume archive data set should be specified in the input stream. The rest of the volumes in the sequence are automatically copied when the first volume is copied. If any one of the volumes of a multivolume archive data set needs to be copied, all have to be copied so that proper volume chaining is maintained on the volume labels.
The following JCL is presented as an example for the utility. It causes a copy volume to be created for archive tape VOLSER 123456. This utility only works for tape.
//JOBNAME JOB (ACCT, INFO), ETC. //COPY EXEC PGM=ADSMI002,PARM=ADSDM227 //STEPLIB DD DISP=SHR,DSN=CAI.DISK.CCUWLOAD //ABNLDUMP DD DUMMY //ARCHIVEC DD DISP=NEW,KEEP,DELETE),DSN=CA.DISK.ARCHCOPY, // VOL=(,,,255), // LABEL=EXPDT=99365,UNIT=TAPE,,DEFER) //*ARCHIVER DD DISP=OLD, //* UNIT=(CART,,DEFER),VOL=(,,,255,SER=CPYME2) //*ARCHIVES DD DISP=OLD, //* UNIT=(TAPE,,DEFER),VOL=(,,,255,SER=COPYME) //FILES DD DISP=SHR,DSN=CAI.DISK.FILES //MSGPRINT DD SYSOUT=A,DCB=BUFNO=0 //PARMLIB DD DISP=SHR,DSN=CAI.DISK.CCUWPARM //* UPDATE ARCCPYDV SYSPARM TO APPROPRIATE VALUE //SYSPARMS DD * ARCCPYDVDYN1 //SYSPRINT DD SYSOUT=A //SYSUDUMP DD SYSOUT=A //COPYFILE DD * 123456
Note: A more flexible way to make a partial copy of multiple ARCHVOLS is discussed in the chapter "XCOPY."
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|