Considerations for Image Copy processing
Image Copy processing, Type-A or Type-B, can be activated by coding IC=YES in the (REORG) block of the HPSIN data set.
Image Copy processing that is supported by the Smart Reorg utility is explained in Image Copy processing and HASH pointer checking.
An appropriate processing type is selected by the Smart Reorg utility depending on the database organization. However, you can override it by specifying the ICTYPE control statement. For details, see IC control statement and ICTYPE control statement.
You can also specify the control statements for IMS HP Image Copy in ICEIN DD. For more information, see Control statements for the Image Copy task.
For restrictions that apply to Image Copy processing, see Smart Reorg restrictions and requirements.
Subsections:
Type-A Image Copy processing
The flow of Type-A Image Copy processing is shown in Data and process flow of Type-A Image Copy.
- HDAM, HIDAM, and HISAM that do not need Prefix Resolution and Update for logical relationships
- SHISAM
- PHDAM and PHIDAM:
- Single partition
- Selected consecutive partitions
- Entire database
- Image copy stacking is not supported. To enable image copy stacking, use Type-B Image Copy.
- DD statements for image copy data sets of secondary index of HDAM, HIDAM, or HISAM cannot be specified. Always use dynamic allocation.
Type-B Image Copy processing
The flow of Type-B Image Copy processing is shown in Data and process flow of Type-B Image Copy with Prefix Resolution/Update.
Type-B Image Copy processing applies to HDAM and HIDAM that have internal logical relationships. Image copies are taken after the Prefix Resolution and Update processes are completed. For details, see Internal logical relationships of HDAM and HIDAM.
- HDAM, HIDAM, and HISAM that have no logical relationship
- PHDAM and PHIDAM that have no logical relationship
- PHDAM and PHIDAM that have one or more logical relationships
Types of Image Copy processing when CRIC=ALWAYS
- If the CRSS determines that the entire database needs to be reorganized, all image copies are created with the image copy type that the ICTYPE control statement specifies.
- If the CRSS determines that the database does not need to be reorganized, ICTYPE control statement is ignored and Type-B Image Copy processing is applied. All image copies are created from original database data sets.
- If the CRSS determines that only some HALDB partitions need to be
reorganized, ICTYPE control statement is ignored and Type-B Image Copy
processing is applied. Image copies of reorganized partitions are created
from shadow database data sets, and image copies of other (not reorganized)
partitions are created from original database data sets.
See also Data and process flow of conditional reorganization and image copy for HALDB.
Image Copy and DBRC
- How the database or index is registered to DBRC.
- How the HDPC parameter is specified in the ICEIN data set.
- How the VIC parameter is specified in the ICEIN data set.
For HIDAM primary index and secondary indexes of HDAM and HIDAM databases, the image copy process depends on the combination of the following definitions:
- HDPC=Y or O
- VIC=N or Y
- RECOVABL or NONRECOV in DBRC database registration
- ICREQ or NOICREQ (for the database registered to DBRC as NONRECOV)
The system default for the HDPC and VIC parameters under the Smart Reorg utility are HDPC=Y and VIC=N. For details about the HDPC parameter under the Smart Reorg utility, see Considerations for HASH pointer checking. For details about the VIC parameter, see the IMS High Performance Image Copy User's Guide.
Recommended combinations are:
- If you want image copies of indexes, register the indexes to DBRC as RECOVABL and accept the system defaults for HDPC and VIC parameters.
- If you do not need image copies of the index, register the index to DBRC as NONRECOV and NOICREQ, and specify HDPC=O and VIC=N on the GLOBAL statement or the IC statement for the index. In this case, the DBRC REORG record is created without turning on the IC NEEDED flag, but neither IC nor UIC (user image copy) record is created for the index. You can reduce the number of unnecessary UIC records in RECON data sets.
- If you do not need image copies of the index but want a UIC record, register the index to DBRC as NONRECOV and NOICREQ, and specify HDPC=Y, VIC=Y, and the VICNAME parameter on the GLOBAL statement or the IC statement for the index. Then, the DBRC REORG record without the IC NEEDED flag turned on and UIC record with the user data supplied by VICNAME are created for the index.
Image Copy and timestamps
The DBRC REORG and IC timestamps that are used by the Smart Reorg utility are different from those timestamps that you see when you use the standard IMS reorganization utilities.
The following figures show the timing at which each timestamp is taken in each Image Copy processing type.
In Type-A Image Copy, as shown in Figure 1, the REORG timestamp is taken after the database is made read-only or stopped, and just before the reorganization is started. The IC timestamp is taken about 3 seconds after the REORG timestamp is taken. Note that Type-A Image Copy process is started at the same time that the reorganization process is started.
In Type-B Image Copy, as shown in the following figure, the REORG timestamp is taken just before the Type-B image copy processing is started, and the IC timestamp is taken about 3 seconds after the REORG timestamp is taken, which is just before the image copy processing is started.