× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Rob,

> Then how does one get the program to signal an error to whatever process
> attempts the update be it your RPG application, UPDDTA, C/S application,
> etc?

Sorry, I said "do not use escape messages to do this" and I
didn't specify what I meant by "this."   Please let me clarify...

It's okay to use escape messages to signal errors to the database
routines...  in that case, you're sending to one call stack level before
the program boundary (*PGMBDY, 1).  All this'll do is tell the DB2/400
routines that there's an error -- they don't care what the error is, they
just know that the trigger failed.

It's not okay to use escape messages to send human-readable messages
directly to your own program.   When you do this, you're bypassing the
database routines, effectively killing them, and returning control
directly to your own routines.

The problem is how to pass the error text back from the trigger to your
application if you don't use the text of the escape message...

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.