Backing up and restoring CASPERM
The CASPERM registery can be backed up or restored at any time while the coordinating address space (CAS) is active.
Backing up the CASPERM when the CAS is active
Use the following JCL to back up the CASPERM when the CAS is active:
//*
//* BACK UP CASPERM REGISTRY TO PS/FB/80 DATA SET
//*
//RGBACK EXEC PGM=OSZEXEC8,PARM=('P=OSZRGTBR',
// 'RASRDID=BBM@CASPERM@<ssid>')
//SYSPRINT DD SYSOUT=*,LRECL=126,DSORG=PS,RECFM=FB
//BACKUP DD DISP=(NEW,CATLG),UNIT=3390,SPACE=(CYL,(50,20),RLSE),
// DSORG=PS,RECFM=FB,LRECL=80,
// DSN=<backup.DSN>
//* BACK UP CASPERM REGISTRY TO PS/FB/80 DATA SET
//*
//RGBACK EXEC PGM=OSZEXEC8,PARM=('P=OSZRGTBR',
// 'RASRDID=BBM@CASPERM@<ssid>')
//SYSPRINT DD SYSOUT=*,LRECL=126,DSORG=PS,RECFM=FB
//BACKUP DD DISP=(NEW,CATLG),UNIT=3390,SPACE=(CYL,(50,20),RLSE),
// DSORG=PS,RECFM=FB,LRECL=80,
// DSN=<backup.DSN>
In the JCL:
- <ssid> is the subsystem identifier used to connect to this CAS.
- <backup.DSN> is the name of the backup data set and can be anything that meets your installation standards.
Restoring the CASPERM when the CAS is active
Use the following JCL to restore the CASPERM from a back up created with the JCL in Backing up the CASPERMwhen the CAS is active:
//*
//* RESTORE CASPERM BACKUP TO THE SAME OR ANOTHER CASPERM
//*
//RGREST EXEC PGM=OSZEXEC8,PARM=('P=OSZRGTBR',
// 'RASRDID=BBM@CASPERM@<ssid>')
//SYSPRINT DD SYSOUT=*,LRECL=126,DSORG=PS,RECFM=FB
//RESTORE DD DISP=SHR,DSN=<backup.DSN>
//* RESTORE CASPERM BACKUP TO THE SAME OR ANOTHER CASPERM
//*
//RGREST EXEC PGM=OSZEXEC8,PARM=('P=OSZRGTBR',
// 'RASRDID=BBM@CASPERM@<ssid>')
//SYSPRINT DD SYSOUT=*,LRECL=126,DSORG=PS,RECFM=FB
//RESTORE DD DISP=SHR,DSN=<backup.DSN>
In the JCL:
- <ssid> is the subsystem identifier used to connect to this CAS.
- <backup.DSN> is the name of the backup data set.
Restoring the CASPERM when the CAS is not active
Use the following JCL to restore the CASPERM when the CAS is not active:
//*
//* RESTORE CASPERM BACKUP TO THE SAME OR ANOTHER CASPERM
//*
//RGREST EXEC PGM=OSZEXEC8,PARM=('P=OSZRGTBR',
// 'DSNAME=<casperm.dsn>')
//SYSPRINT DD SYSOUT=*,LRECL=126,DSORG=PS,RECFM=FB
//RESTORE DD DISP=SHR,DSN=<backup.DSN>
//* RESTORE CASPERM BACKUP TO THE SAME OR ANOTHER CASPERM
//*
//RGREST EXEC PGM=OSZEXEC8,PARM=('P=OSZRGTBR',
// 'DSNAME=<casperm.dsn>')
//SYSPRINT DD SYSOUT=*,LRECL=126,DSORG=PS,RECFM=FB
//RESTORE DD DISP=SHR,DSN=<backup.DSN>
In the JCL:
- <casperm.dsn> is the name of the CASPERM data set.
- <backup.DSN> is the name of the backup data set.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*