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



May I suggest my standard error handler. You can get a copy by going to
www.sourceforge.net/projects/iBuild.

The source code you want to download is XVERRH, XVERRH_B, XVERRH_M01,
XVERRH_M02, XVERRH_M03 and XVERRH_PR or I would be glad to send it to you.

My standard error handler has functions that throw an error while
logging an error in a linked list. You can then catch the error at a higher
level and get the message and details.

Anyway a standard way to handle and return data to the caller.

On Fri, Mar 29, 2024 at 10:08 AM Thomas Raddatz <thomas.raddatz@xxxxxx>
wrote:

I already use the QMHRCVPM message to receive a message send by a program.
The sender information of format RCVM0300 contains the program, module and
procedure name as well as the statement number of the program that sent the
message. But it does not contain the program library name.

However the program library name is displayed, e.g. if you do a DSPJOBLOG,
prompt a message with F1 and switch to the message details with F9, e.g.:

From program . . . . . . . . . : RUCALLTST
From library . . . . . . . . : RPGUNITDVP
From module . . . . . . . . : PGMMSG
From procedure . . . . . . . : PGMMSG_sndEscapeMsgAboveCtlBdy
From statement . . . . . . . : 35600

Hence the information must be available somewhere. Hopefully not only for
the operating system.

So does somebody know how to get the above information of a message send
by a program?

Thomas.
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



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.