A recovery routine is the routine to which the system passes control
when an error occurs in the mainline routine. The recovery routine's
objective is to intercept the error and potentially perform one or
more of the following tasks:
- Eliminate or minimize the effects of the error
- Allow the mainline routine to resume normal processing
- Clean up resources
- Communicate with other programs as appropriate
- Provide serviceability data
- Request a dump
- Validate user parameters
- Provide one or more recovery routines for itself.
The recovery routine can be an entry point in your program that
processes only when an error occurs, or it can be a separate routine
that gets control when the error occurs.