× 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 Mark

> I want to catch an error with a monitor block, issue a rollback, and send
> a standard inquiry message to the user where I will handle the reply.  I
> have the message handling API PDF and can't seem to put it all together.
>
> Anyone know how to do this?

Monitor;
  Do Whatever
On-Error;
  Use QMHRCVPM to get the error message.
  Do the rollback or whatever else
  Use QMHSNDM to send an inquiry message.  Tell it to send the
      response to your program queue (*PGMQ)
  Use QMHRCVPM to wait for & read the response from the program queue.
EndMon;

For an example of the inquiry message & wait for response, take a look at
the article entitled "AN RPG EQUIVALENT OF SNDUSRMSG" in the following
issue of my newsletter:
http://www.iseriesnetwork.com/resources/clubtech/index.cfm?fuseaction=ShowNewsletterIssue&ID=19032

(That link does require a membership to the iSeries Network, but a free
"associate" membership will work.)

Good Luck


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.