Using the EXPORT and IMPORT functions

Similar considerations to those for the REPRO method also apply to the use of IMPORT when recovering data from a copy created by EXPORT.

About this task

The following steps are required to restore a data set copy that has been created by an access method services EXPORT command:
  • Create a new empty data set into which the copy is to be restored, and use IMPORT to copy the data from the exported version of the data set to the new empty data set.
  • Use SHCDS FRSETRR to mark the original data set as being under maintenance.
  • Use SHCDS FRUNBIND to unbind the locks from the original data set.
  • Use SHCDS FRSETRR to mark the new data set as being under maintenance.
  • Delete the original data set.
  • Rename the new data set back to the old name.
  • Use SHCDS FRBIND to associate the locks with the new data set.
  • Use SHCDS FRRESETRR to take the data set out of maintenance.
An example follows of the access method services commands used to restore a portable copy of a data set created by EXPORT. The example assumes that EXPORT has been used to create a copy of data set CICS®.DATASET.A and that an empty data set with the correct VSAM characteristics called CICS.DATASET.B has been created into which the data will be imported.
 IMPORT INTOEMTPTY INDATASET(CICS.DATASET.A.COPY) OUTDATASET(CICS.DATASET.B)
 SHCDS FRSETRR(CICS.DATASET.A)
 SHCDS FRUNBIND(CICS.DATASET.A)
 SHCDS FRSETRR(CICS.DATASET.B)
 DELETE CICS.DATASET.A
 ALTER CICS.DATASET.B NEWNAME(CICS.DATASET.A)
 SHCDS FRBIND(CICS.DATASET.A)
 SHCDS FRRESETRR(CICS.DATASET.A)


dfht2c00225.html | Timestamp icon Last updated: Monday, 5 June 2017