File error detection and handling by the system

 

The system can detect errors when a file is opened, when a program device is acquired or released, during I/O operations to a file, and when the file is closed.

When appropriate, the system will automatically try to run a failing operation again, up to a try again limit. When a try again is successful, neither operator nor program action is required.

 

How the system reports errors

The system reports errors that can affect the processing of the program in any or all of the following ways:

Only some of these are significant to a program that is attempting error recovery.

 

Actions to take when you receive an error

See Recovery from file system errors for information about the actions you should take when you receive an error.

 

Unrecoverable errors

Not all file errors allow programmed error recovery. Some errors are permanent; that is, the file, device, or program cannot work until you take some corrective action. This might involve resetting the device by varying it off and on again, or correcting an error in the device configuration or the application program. Some messages and return codes inform the user or the application program of conditions that are information rather than errors, such as a change in the status of a communications line or a system action taken for an unexpected condition. In many cases, it is possible for the application program to test for an error condition and take some preplanned recovery action that allows the program to continue without intervention from the operator.

 

Parent topic:

Troubleshooting database file management

 

Related information


Control language (CL)
Basic system operations