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



Since you are in C, you can use #pragma exception_handler instead of 
signals.
There is control action _CTLA_HANDLE_NO_MSG, which will automatically 
remove mesage from job message queue when excpion is handle.

    Alexei Pytel
always speaking for myself

Where is the beginning of the end, which ends the beginning?



"Bob Cozzi" <cozzi@xxxxxxxxx> 
Sent by: mi400-bounces@xxxxxxxxxxxx
05/18/2004 07:46 AM
Please respond to
MI Programming on the AS400 / iSeries


To
<mi400@xxxxxxxxxxxx>
cc

Subject
[MI400] MCH3401 removal






Hi,
I have a wrapper around rslvsp so that I can access objects in QTEMP.
I am basically doing an "IF Object Exists" test in an RPG IV program by
calling a C function that evokes rslvsp.
When the object does not exist, a signal handler is evoked and I return a
*NULL value to the caller. When it does exist, I return the system 
pointer.
Where I'm lost is how to filter/remove the MCH3401 message so that the 
user
doesn't see it in their joblog. I want to do this because they may be
calling this procedure 1000's of times and that would just clutter things
up.
Is there a way to filter out messages without doing a dynamic call to one 
of
the QMHxxxxx message APIs?
-Bob Cozzi


_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mi400
or email: MI400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.



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.