Recovering databases accessed by batch and BMP programs
You can plan for recovering databases accessed by batch or BMP programs.
CICS® recovers databases accessed by CICS online programs in the same way it handles other recoverable CICS resources. For example, if an IMS transaction terminates abnormally, CICS and IMS back out all database updates to the last sync point.
For batch or BMP programs, do the following:
- Take checkpoints in your program to commit database changes and provide places from which your program can be restarted.
- Provide the code for or issue a request to restart your program.
You may also want to back out the database changes that have been made by a batch program that has not yet committed these changes.
To perform these tasks, you use system service calls, described in more detail in the appropriate application programming information for your environment.
Requesting an I/O PCB in batch programs
For your program to successfully issue any system service request, an I/O PCB must have been previously requested.