RESYNC request
You can use the RESYNC request to tell IMS DB what to do with in-doubt UORs. Four different subfunction values indicate possible actions for IMS DB to take for the UOR.
The following subfunction values indicate possible actions:
- PAPLRCOM
- Commit the in-doubt UOR.
- PAPLRABT
- Abort the in-doubt UOR. Changes made to any recoverable resource are backed out.
- PAPLSCLD
- The UOR was lost to the transaction manager due to a coldstart.
- PAPLSUNK
- The in-doubt UOR is unknown to the CCTL. This can occur when the CCTL's in-doubt period does not include the start of phase 1. (See Table 2 for an illustration of in-doubt periods.)
You must fill in the following input fields of the PAPL:
- Field
- Contents
- PAPLCTOK
- Request token
This token identifies the CCTL to the DRA. The DRA establishes the token and returns it to the CCTL in the parameter list on the startup INIT request. The request token must be passed on to the DRA for all RESYNC requests.
- PAPLRTOK
- Recovery token
This 16-byte token is associated with a UOR. The first 8 bytes must be the transaction manager subsystem ID. The second 8 bytes must be unique for one CCTL thread. This is one of the in-doubt recovery tokens passed to the Control exit routine.
- PAPLFUNC
- PAPLRSYN
- PAPLSFNC
- This field must contain PAPLRCOM, PAPLRABT, PAPLSCLD, or PAPLSUNK.
In addition to the required input parameters, the optional input parameters include:
- Field
- Contents
- PAPLTECB
- To use the default Suspend exit routine and Resume exit routine, each DRA request must have the field PAPLTECB set with the address of a CCTL ECB to be used if the thread is waited or posted. If your CCTL does not provide Suspend and Resume exit routines, the DRA default exit routines will be used.