Please enable JavaScript to view this site.

ESL Documentation

Navigation: ESL Documentation > ESL DB/Assist > FAQs

Q7 How do I manage errors when using the EDB2 facilities?

Scroll Prev Top Next More

Whenever a call to a DB/Assist generated action routine results in an error, the boolean variable EDB2Error_BV is set to true. Your application should check this variable after the execution of every action routine. When a call to EDB2.DLL fails, as well as EDB2Error_BV being set to true, a structure named ESLCA is filled with information relating to the failure of this call. SQLCODE is an integer field within this structure that stores the return code of the failing call and can be used to identify the source of the error. By default, the DB/Assist generated action routines check the value of the SQLCODE to verify whether the routine executed successfully. The values returned represent different error conditions, and your ESL application should react appropriately to each of the conditions.