Progress
Embedded SQL-92
Guide and Reference


Using the WHENEVER Statement

An alternative way to handle errors is to use the WHENEVER statement. This statement allows an application to take specific program actions in response to exception conditions. These exceptions include NOT FOUND, SQLERROR, and SQLWARNING. The program actions could be to exit the program, branch to an error handler, or continue execution.

For more information on error handling and a listing of the SQLCA structure, see Handling Errors in ESQL-92."


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095