Customizing the DSSOPT DD statement
You can use the DSSOPT DD statement to replace the DFSMSdss DUMP, COPY, and RESTORE commands that are used by DFSMSrmm. You might want to customize the operands based on the media that you used for the backup, the copy, or the resource that you have available.
DUMP DS(INCLUDE(cds_name)) OUTDD(BACKUP) SHARE -
COMPRESS CONCURRENT VALIDATE OPTIMIZE(1)
COPY DS(INCLUDE(cds_name)) [OUTDD(BACKUP)] SHARE –
FR(PREF) CONCURRENT RENAMEU((**.CDS,**.COPYCDS)) REPLACEU
RESTORE DS(INCLUDE(**)) INDD(BACKUP) -
REPLACE
The command operands that you can specify in the DSSOPT DD statement are controlled and validated by DFSMSdss, not by DFSMSrmm. If you specify an unsupported command operand, DFSMSdss fails the operation.
The COPY command used by DFSMSrmm includes the OUTDD(BACKUP) keyword only if you have specified the BACKUP DD. When the OUTDD keyword is not specified, processing relies on SMS ACS processing being used to determine the target volume. You can override this processing by specifying the OUTDD keyword in DSSOPT or by specifying any other alternative DFSMSdss keyword that directs where the target copy is to be created.
FR(PREF) CONCURRENT(VIRTUALREQ) RENAMEU((*.CDS.**,*.COPYCDS.**)) REPLACEU
or
FR(PREF) CONCURRENT(ANYREQ) RENAMEU((*.CDS.**,*.COPYCDS.**)) REPLACEU
Do
not specify FR(PREF) without the CONCURRENT keyword or the FR(REQ)
keyword, because this causes processing to be intrusive.The RENAMEU keyword on the COPY command specifies a filter mask (**.CDS) and renaming rule (**.COPYCDS). This changes the ending qualifier of the copied data set from '.CDS' to '.COPYCDS'. If your control data set name does not end in ',CDS' or you want to use a different renaming rule, you must use DSSOPT to override the second line of the command. See z/OS DFSMSdfp Storage Administration for details of the use of RENAMEU.
The REPLACE keyword on the RESTORE command ensures that when you recover the DFSMSrmm control data set from a backup, any existing control data set is reused when possible or reallocated if necessary. If you are increasing the size of the control data set and have preallocated a larger control data set, specify the REPLACE keyword to restore to the preallocated data set.
The DSSOPT DD statement can be specified for dump, copy, and restore operations. DFSMSrmm reads all the records and uses them to replace its default command operands beginning at the second line. You can include comments in the DSSOPT records by using DFSMSdss conventions.
//EDGBKUP EXEC PGM=EDGHSKP,PARM='BACKUP(DSS)'
//SYSPRINT DD SYSOUT=*
//MESSAGE DD SYSOUT=*
//BACKUP DD DISP=(,CATLG),UNIT=TAPE,DSN=BACKUP.CDS(+1),
// LABEL=(,SL)
//JRNLBKUP DD DISP=(,CATLG),UNIT=TAPE,DSN=BACKUP.JRNL(+1),
// RECFM=VB,LRECL=9248,
// LABEL=(2,SL),VOL=REF=*.BACKUP
//DSSOPT DD *
CONCURRENT OPTIMIZE(4) VALIDATE
/*
//EDGBKUP EXEC PGM=EDGBKUP,PARM='RESTORE'
//SYSPRINT DD SYSOUT=*
//BACKUP DD DISP=SHR,UNIT=TAPE,DSN=BACKUP.CDS(0)
//JOURNAL DD DISP=SHR,DSN=BACKUP.JOURNAL(0)
// DD DISP=SHR,DSN=RMM.JOURNAL
//NEWVOL DD DISP=SHR,VOL=SER=MYVOLX
//DSSOPT DD *
/*RESTORE TO NEW VOLUME,AND
RENAME THE CDS */
OUTDD(NEWVOL)RENAMEU((*.CDS,*.NEWCDS))
//EDGBKUP EXEC PGM=EDGBKUP,PARM='BACKUP(COPY)'
//SYSPRINT DD SYSOUT=*
//BACKUP DD DISP=SHR,UNIT=SYSDA,VOL=SER=myvol
//DSSOPT DD *
FR(PREF) CC(ANYREQ) RENAMEU((*.CDS.**,*.COPYCDS.**)) REPLACEU
/*