Before you begin: Use the BACKUP(DSS) option on a concurrent
copy capable device to enable DFSMSrmm to continue to process requests
while the backup is taken.
Perform these steps to move your control data set and journal to
a different device.
- With DFSMSrmm active, back up both the control data
set and the journal.
Example: Run EDGHSKP,PARM='BACKUP(DSS)'
to back up the control data set and the journal and to clear the current
journal. Use the BACKUP(DSS) option on a concurrent copy capable device
to enable DFSMSrmm to continue processing requests while the backup
is taken. DFSMSrmm might write some records to the journal if any
updates are made to the control data set before the DFSMSrmm procedure
is stopped. This is not a problem as the restore operation will use
them in forward recovery.
//EXEC PGM=EDGHSKP,PARM='BACKUP(DSS)'
//MESSAGE DD DISP=SHR,DSN=messages
//SYSPRINT DD SYSOUT=*
//BACKUP DD DISP=(,CATLG),DSN=cds backup(+1),UNIT=SYSALLDA
//JRNLBKUP DD DISP=(,CATLG),DSN=journal backup(+1),UNIT=SYSALLDA
- Stop or quiesce the DFSMSrmm procedure to prevent any further
updates to the control data set during recovery.
- Restore the backup of the control data set to the new control
data set. If the BACKUP(DSS) option is used, you can use the DSSOPT
DD statement to specify the new control data set data set name. This
puts the latest DFSMSrmm information into the new control data set
and uses the old journal to forward recover the control data set backup
to the point when the you stopped the DFSMSrmm procedure.
This
JCL example restores the back up to a different device using a new
data set name:
//MOVECDS EXEC PGM=EDGBKUP,PARM='RESTORE'
//SYSPRINT DD SYSOUT=*
//DSSOPT DD *
RENAMEU(*.CDS,*.NEWCDS) OUTDYNAM(SHRPK2) NULLSTORCLAS BYPASSACS(*)
//BACKUP DD DISP=SHR,DSN=cds_backup(0)
//JOURNAL DD DISP=SHR,DSN=journal_backup(0)
// DD DISP=SHR,DSN=old_journal
- Implement the new data sets by using one of these techniques:
- Use IDCAMS ALTER command to rename the new control data set and
journal after you rename the old data sets.
- Create a new EDGRMMxx parmlib member with the new journal
names and control data set names.
- Update the current parmlib member to include the names of the
new control data set and journal.
- If you stopped DFSMSrmm, start the DFSMSrmm procedure, using the
updated parmlib member or the new parmlib member. If you quiesced
DFSMSrmm, use the MODIFY command to specify the parmlib member suffix
to be used.
If you are keeping multiple control data set and journal
backups for error recovery situations, perform step 1 again to backup the control data set
and journal.
Recommendation: Back up the new data sets
now to avoid the requirement to keep the old journal for recovery.
As your backup copies are created in the future, your requirement
for the old journal will be eliminated.
You are done when you have successfully moved the control data
set and journal.