iSeries™ provides
server reports and error messages when errors occur. You can take corresponding
actions according to the errors.
File error detection and handling by the server
The server 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 server 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.
Messages and message monitors in files by the server
Displayed messages are the primary source of information for an operator or a programmer who is testing a new application. A message typically contains more specific information than the file status code, the indicators, and the major and minor return code. The control language lets you monitor messages so that the CL program can intercept a message and take corrective action.
Major and minor return codes in files by the server
Major and minor return codes report errors and certain status information for ICF, display, and printer files. They are not used for other files. They typically appear as four characters: the first two refer to the major code and the second two refer to the minor code.
Recover from file server errors
This section describes the errors you might receive and the actions you should take to recover from those errors.