9. Alter the new data set name

Use access method services to rename the new data set to the name of the old data set.

ALTER CICS.DATASETB NEWNAME(CICS.DATASETA)

You must give the restored data set the name of the old data set to enable the following bind operation to succeed.

10. Issue the FRBIND subcommand

Use this access method services SHCDS subcommand to re-bind to the recovered data set all the retained locks that were unbound from the old data set.

11. Issue the FRRESETRR subcommand

Use this access method services SHCDS subcommand after the re-bind to re-enable access to the data set by applications other than the forward recovery utility.

Note: You can include the SHCDS FRBIND and FRRESETRR subcommands of steps 10 and 11 in one IDCAMS execution, but they must be in the correct sequence. For example, the SYSIN input to IDCAMS would look like this:

//SYSIN DD *

SHCDS FRBIND(dataset_name) SHCDS FRRESETRR(dataset_name) /*

These steps are summarized in the following commands, where the data set names are labeled with A and B suffixes:

CEMT SET DSNAME(CICS.DATASETA) QUIESCED

DEFINE CLUSTER(NAME(CICS.DATASETB) ...

SHCDS FRSETRR(CICS.DATASETA)

SHCDS FRUNBIND(CICS.DATASETA)

HRECOVER (CICS.DATASETA.BACKUP) ... NEWNAME(CICS.DATASETB)

SHCDS FRSETRR(CICS.DATASETB)

EXEC PGM=fwdrecov_utility

DELETE CICS.DATASETA

ALTER CICS.DATASETB NEWNAME(CICS.DATASETA)

SHCDS FRBIND(CICS.DATASETA)

SHCDS FRRESETRR(CICS.DATASETA)

If you use CICSVR, the SHCDS functions are performed for you (see Forward recovery with CICS VSAM Recovery).

After successful forward recovery, CICS can carry out any pending backout processing against the restored data set. Backout processing is necessary because the forward recovery log contains after images of all changes to the data set, including those that are uncommitted, and were in the process of being backed out when the data set failed.

Recovery of data set with loss of volume

Moving a data set that has retained locks means the locks associated with the original data set have somehow to be attached to the new data set.

In the event of a lost volume, a volume restore implicitly moves data sets. Even if you are using CICSVR, which normally takes care of re-attaching locks to a recovered data set, the movement of data sets caused by loss of a volume cannot be managed entirely automatically.

Chapter 17. Forward recovery procedures 189

Page 201
Image 201
IBM SC34-7012-01 manual Recovery of data set with loss of volume, Alter the new data set name, Issue the Frbind subcommand