|
DFSMSrmm obtains the name of the control data set and journal
from the running DFSMSrmm subsystem.
Rule: Do not specify the data set names in
the JCL. If you do, the job fails.
To create a backup copy using EDGHSKP, specify the BACKUP parameter.
- Submit a job to back up the control data set to tape with JCL
as shown in Figure 1.
Figure 1. Example of
JCL for backing up the control data set and the journal to tape //EDGHSKP EXEC PGM=EDGHSKP,PARM='BACKUP(DSS)'
//MESSAGE DD DISP=SHR,DSN=RMM.MESSAGE
//SYSPRINT DD SYSOUT=*
//BACKUP DD DISP=(,CATLG),UNIT=TAPE,DSN=BACKUP.CDS(+1),
// LABEL=(,SL)
// AVGREC=U,LRECL=9216,BLKSIZE=0,RECFM=U
//JRNLBKUP DD DISP=(,CATLG),UNIT=TAPE,DSN=BACKUP.JRNL(+1),
// DCB=(RECFM=VB,BLKSIZE=0,LRECL=9248),
// LABEL=(2,SL),VOL=REF=*.BACKUP
//DSSOPT DD *
CONCURRENT OPTIMIZE(1) VALIDATE
/*
- Specify the JRNLBKUP DD statement only if you want to back up
the journal. The DSSOPT DD statement is optional and allows you to
customize the DFSMSdss DUMP and DFSMSdss RESTORE commands. See Customizing the DSSOPT DD statement for information about changing the DSSOPT DD statement.
- Specify BACKUP(DSS) when you want to use DFSMSdss to perform the
back up. You do not need to use concurrent copy to specify BACKUP(DSS).
Using DFSMSdss concurrent copy permits the update of the control data
set during backup processing so that all tape activities can continue
during backup processing. To use DFSMSdss concurrent copy, you must
have a concurrent copy environment set up. If you specify BACKUP(DSS)
without concurrent copy, you can still direct the output to tape.
All other updates to the control data set will wait until the control
data set backup completes. If you specify BACKUP(DSS) and you use
concurrent copy, DFSMSrmm
clears the journal only if you also back up the journal.
You can submit a job to back up the control data set to DASD with
JCL as shown in Figure 2.
Figure 2. Example
of JCL for backing up the control data set and journal to DASD //BACKUP EXEC PGM=EDGHSKP,PARM='BACKUP(AMS)'
//SYSPRINT DD SYSOUT=*
//MESSAGE DD DSN=RMM.MESSAGE(0),
// DISP=SHR
//BACKUP DD DSN=RMM.BACKUP(+1),
// DISP=(,CATLG,DELETE),
// UNIT=SYSALLDA,
// AVGREC=U,SPACE=(4096,(1000,500),RLSE),
// LRECL=9216,BLKSIZE=0,RECFM=VB,
// BUFNO=30,
// DCB=RMM.GDGMODEL
//JRNLBKUP DD DSN=RMM.JRNLBKUP(+1),
// DISP=(,CATLG,DELETE),
// UNIT=SYSALLDA,
// AVGREC=U,SPACE=(4096,(1000,500),RLSE),
// LRECL=9248,BLKSIZE=0,RECFM=VB,
// BUFNO=30,
// DCB=RMM.GDGMODEL
|