Detecting and processing error and warning conditions in host language applications

Errors and warnings conditions in host language applications can be checked by using the SQLIMSCODE or SQLIMSSTATE host variables or by using the SQLIMSCA.

Each host language provides a mechanism for handling diagnostic information.

In COBOL, an application program that contains executable SQL statements must provide a stand-alone integer variable named SQLIMSCODE.