Synchronizing with the two-step method
Using the two-step method, you run two Resync jobs. The first job (verify step) scans the DEDB areas and their secondary index databases, and the second job (update step) updates the secondary index databases.
Procedure
- Optional: Estimate the region size that is required to run the job.
- Specify the EXEC statement in the following format:
//RESYNC EXEC PGM=HFPMAIN0,REGION=rrrrM, // PARM='DBRCGRP=dbrcgrp,GSGNAME=gsgname,IMSPLEX=imsplex, IMSID=imsid'
Parameter Description DBRCGRP= DBRCGRP is an optional 1- to 3-character parameter that specifies the identifier assigned to a group of DBRC instances (DBRC sharing group) that access the same RECON data set in the IMSplex. GSGNAME= GSGNAME is an optional 1- to 8-character parameter that specifies the global service group. IMSPLEX= IMSPLEX is an optional 1- to 5-character parameter that specifies the names of the IMSplex groups that share databases or message queues. IMSID= IMSID is an optional 1- to 8-character parameter that specifies the IMS system identification name. If you specify this parameter, FPA generates the buffers for temporary ESCD and SCD. When FPA issues a call to a randomizing module, register 11 contains the address of the temporary ESCD. FPA sets only the ESCDSCD field, which contains the address of SCD, in the temporary ESCD. Also, FPA sets only the SSCDIMID field, which contains the IMS system ID, in the temporary SCD. Other fields of temporary ESCD and temporary SCD cannot be referred to.
- Specify the DD statements that define input data sets and
output data sets.
For descriptions of the DD statements, see DD statements for the Resync function.
- Code the S0nnnnnR DD statements or utility control statements to specify the resync pointer segment record data sets. The Resync function creates Resync work records in these data sets. For more information, see How to specify Resync work data sets to write data into.
- Specify the utility control statements.
- Specify the INDEXBLD command in the HFPSYSIN DD.
- Specify IDXPROC=RESYNC for the INDEXBLD command. If you do not specify RESYNC, the job runs the Build Index function.
- Specify RESYNCMODE=VERIFY to run the job in verify
mode.
//HFPSYSIN DD * GLOBAL DBRC=NO INDEXBLD DBD=IVPDB3, IDXPROC=RESYNC, RESYNCMODE=VERIFY
- Submit the job. The Resync function runs in verify mode and generates resync pointer segment records in the resync pointer segment data sets.
- Create another Resync job to run in update mode. You can copy and modify the JCL member that you created for verify mode.
- Modify the utility control statements. Specify RESYNCMODE=UPDATE
to run the job in update mode.
//HFPSYSIN DD * GLOBAL DBRC=NO, IMSID=IMS1 INDEXBLD DBD=IVPDB3, IDXPROC=RESYNC, RESYNCMODE=UPDATE
- Code the S0nnnnnR DD statements or utility control statements to specify the resync pointer segment record data sets. The Resync function reads Resync work records from these data sets. For more information, see How to specify Resync work data sets to read data from.
- Submit the job. The Resync function runs in update mode and updates the secondary index databases.