Abstract
Informix
Stored Procedure Language (SPL) has a smaller command set than other database products, but is more than adequate when making full use of
built-in SQL functions. An SPL routine is called a PROCEDURE if no data is returned, or
FUNCTION otherwise, as explained
here. User Defined Routines (UDRs) can also be written in C or Java, whereas this article is only concerned with SPL UDRs.
There may be multiple levels of SPL routines called by another, and it can be difficult to know which has failed if an error results. This article provides a method of recording and retrieving the details of any failure, with only a tiny code addition at the top of each routine.
[Read More…]