Is it possible to modify the sql warning or error messages in db2?I always have to catch the sql message number and modify the explanation in my applications.
Salih Sipahi
Software Engineer.
City of Istanbul Turkey
s.sipahi@sahinlerholding.com.tr
Hi Salih,
I'm not sure where the text for these messages live, but I suspect they are hard coded in whatever program you use to generate the error message text.
At many of the installations I have worked at, we have output our own informational message, follow by DB2's formatted one.
I think you may wish to invoke DSNTIAR, as it will give you DB2's explanation of the error. If it is what your after then I can provide you an example og how to invoke it should you require. A bit further info below.
DB2 provides a utility program DSNTIAR which, given an SQLCA, produces a formatted text message in an application supplied area. The message is in VARCHAR format, i.e. it consists of a 2 byte length field followed by a variable length character field.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.