EGL Reference Guide for iSeries

I/O statements

In relation to I/O statements, an error can be hard or soft:

If a soft I/O error occurs in a try block, the generated program continues running. If a hard I/O error occurs in a try block, the consequence depends on the value of an error-related system variable:

If either a hard or soft I/O error occurs outside of a try block, the generated program presents an error message, if possible, and ends.

If you are accessing DB2 directly (not through JDBC), the sqlcode for a hard error is 304, 802, or less than 0.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]