Copying from an image copy
You can use DSN1COPY to copy data from an image copy of the data sets of a table space to the data sets of a table space on the same subsystem or another subsystem.
Procedure
To copy from a specific image copy data set, specify the following SYSUT2 data sets:
- If SYSUT1 is an image copy of a single partition, ensure that the SYSUT2 DD statement refers to the first data set of the table space. DSN1COPY determines the correct target data set. Code the NUMPARTS(nn) parameter, where nn is the number of partitions in the entire table space. However, if the partitioned table space is defined with more than one VCAT name (for example, a unique VCAT for different partitions), use SYSUT2 as the name of the data set for that partition.
- If SYSUT1 is an image copy of an entire partitioned table space, ensure that the SYSUT2 DD statement refers to the first data set of the table space. In this case, DSN1COPY allocates all of the target data sets. However, you must have previously defined the target data sets either by creating the partitioned table space with DEFINE YES or by using Access Method Services. Code the NUMPARTS parameter as described in the first bullet when the table space is partitioned. When multiple VCAT names are used for different partitions of a partitioned table space, DSN1COPY cannot restore the entire table space by using as input a single full image copy of the table space. In this case, when you use DSN1COPY, you must restore individual copies of each partition by using the name of the data sets for that partition. Code the NUMPARTS(nn) parameter, where nn is the number of partitions in the entire table space.
- If SYSUT1 is an image copy of a single data set of a multiple data set nonpartitioned table space, ensure that the SYSUT2 DD statement refers to the actual (not the first) output data set of the table space. Do not specify NUMPARTS because this parameter is only for partitioned table spaces.
- If SYSUT1 is an image copy of an entire multiple data set nonpartitioned table space, ensure that the SYSUT2 DD statement refers to the first data set of the table space. DSN1COPY allocates all target data sets. However, you must have previously defined the target data sets by using Access Method Services. If the source data sets are less than the target data sets it is recommended to either delete all rows from the target table space or to do a LOAD REPLACE with DD DUMMY on the target table space first, before running DSN1COPY.
- If SYSUT1 is an image copy of a single data set of a multiple data set LOB table space, ensure that the SYSUT2 DD statement refers to the actual (not the first) data set of the table space. Do not specify NUMPARTS because this parameter is only for partitioned table spaces.
- If SYSUT1 is an image copy of an entire multiple data set LOB table space, ensure that the SYSUT2 DD statement refers to the first data set of the table space. DSN1COPY allocates all target data sets. However, you must have previously defined the target data sets by using Access Method Services.
What to do next
Important: After you use DSN1COPY to copy data from an image copy, you need to ensure
that the version information in the source and target table spaces matches. To do that, run REPAIR
CATALOG on the target table space immediately after you run DSN1COPY.