Exporting and importing the repository
To export and import the repository, perform the following process during a quiet time:
- Perform a LISTCAT of your primary and secondary repository files. Examine the currently allocated space to ensure that the new space allocation will be adequate.
Back up your primary repository by executing the following RUVZSM0 utility command:
SET SUBSYSTEM(<ssid>);
REPORT(DETAIL);
BACKUP REPOSITORY
BACKUP_OUT(<ddn8>)
;- Bring down your RUV subsystem.
Execute the following JCL to export your repository data, delete and define your repository data sets, and repopulate your primary repository data set.
//EXPORT EXEC PGM=IDCAMS
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//OUTDD1 DD DSN=RUV.RUV.REGISET.BACKUP,
// UNIT=SYSDA,SPACE=(CYL,(60,13),RLSE),
// DCB=(BLKSIZE=40874,LRECL=4087,RECFM=VB),
// DISP=(NEW,CATLG,DELETE)
//SYSIN DD *
EXPORT -
RUV.RUV.REGISET -
OUTFILE(OUTDD1) -
TEMPORARY
//*----------------------------------------------------------
//DELETE EXEC PGM=IDCAMS,COND=(3,LT)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE RUV.RUV.REGISET
DELETE RUV.RUV.REGISET2
SET MAXCC=0
/*
//DEFINE EXEC PGM=IDCAMS,REGION=1M
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE CLUSTER(NAME(RUV.RUV.REGISET) -
INDEXED -
CYL(50,5) -
SHR(4,3) -
KEYS(64 0) -
VOLUMES(XXXXXX) -
CISZ(20480) -
FREESPACE(10 10) -
BUFFERSPACE(32768) -
RECORDSIZE(1000 4087) -
SPEED IMBED NOREPLICATE NOREUSE) -
DATA(NAME(RUV.RUV.REGISET.DATA))-
INDEX(NAME(RUV.RUV.REGISET.INDEX) -
CISZ(2048))
DEFINE CLUSTER(NAME(RUV.RUV.REGISET2) -
INDEXED -
CYL(50,5) -
SHR(4,3) -
KEYS(64 0) -
VOLUMES(XXXXXX) -
CISZ(20480) -
FREESPACE(10 10) -
BUFFERSPACE(32768) -
RECORDSIZE(1000 4087) -
SPEED IMBED NOREPLICATE NOREUSE) -
DATA(NAME(RUV.RUV.REGISET2.DATA)) -
INDEX(NAME(RUV.RUV.REGISET2.INDEX) -
CISZ(2048))
//IMPORT EXEC PGM=IDCAMS,COND=(3,LT)
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//INDD1 DD DISP=SHR,DSN=RUV.RUV.REGISET.BACKUP
//SYSIN DD *
IMPORT IINFILE(INDD1) OUTDATASET(RUV.RUV.REGISET) INTOEMPTY- Start your RUV subsystem again.
The RUV subsystem automatically populates the secondary repository from the primary repository at startup. - Perform a LISTCAT of your new primary and secondary repository files.
- Compare the LISTCAT from before and after the export and import process to assess the results of the process.
Related topic
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*