Using the AR/CTL checkpoint call
To initiate checkpoint processing, an application program can issue a checkpoint call to AR/CTL. A checkpoint call is appropriate to issue at the following points during processing:
- immediately after the restart call
- at the end of any logical unit of work (UOW)
- immediately before termination
AR/CTL automatically generates and increments the checkpoint ID when the application program issues the AR/CTL-format checkpoint request.
The application program can issue a checkpoint call with or without defining working storage areas to save. If the checkpoint call omits working storage areas, AR/CTL saves the working storage areas defined in the restart ( ARCXRST ) call.
The formats of the ARCECHK checkpoint call in COBOL follow:
CALL 'ARCECHK' USING arc-arb, beginarea-1, endarea-1,
beginarea-2, endarea-2,...beginarea-n, endarea-n
The formats of the ARCCHKP call in COBOL follow:
CALL 'ARCCHKP' USING beginarea-1, endarea-1,
beginarea-2, endarea-2,...beginarea-n, endarea-n
ARCECHK or ARCCHKP | Required. The literal that identifies the call as the AR/CTL checkpoint call. |
|---|---|
arc-arb | Required on the ARCECHK call; not valid on the ARCCHKP call. The name of a fullword-aligned field that contains the address of the application request block (ARB). The ARB is defined in the working storage of the application program. For more information, see 'Coding the checkpoint ARB' on page 181. |
Before issuing the ARCECHK call, the application program can set the field in the ARB that indicates the function to use ( FORCE ), as shown in the following COBOL example: | |
MOVE 'FORCE' TO ARB-FUNC. |
beginarea-1 | Optional; if omitted, AR/CTL saves the first area identified with the restart call. The name of a field that contains the beginning address of the first application program data area to save in the checkpoint record. |
|---|---|
endarea-1 | Optional; if omitted, AR/CTL saves the first area identified with the restart call. The name of a field that marks the ending address of the first application program data area to save in the checkpoint record. This field is not included in the save area. |
beginarea-n | Optional. The name of a field that contains the beginning address of the next application program data area to save in the checkpoint record. You can specify a maximum of seven areas. |
endarea-n | Optional. The name of a field that marks the ending address of the next application program data area to save in the checkpoint record. This field is not included in the save area. AR/CTL does not return any status codes for the ARCCHKP call; checkpoints can be bypassed because of checkpoint pacing without the application program being notified. |