× 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 Patrik,

I am not really a C programmer but I can tell you how I use messages in RPG.

1. Writing information into the job log (f. e. with a message of type INFO)

2. Sending a message of type ESCAPE in case something went wrong which I cannot handle in the current place of the code. To tell the caller something went wrong I am sending an ESCAPE message to the caller. The caller can handle the message or not. If he doesn't handle it then the message will go up the call stack to the next one. (This is pretty much how an Exception is Java is working and probably also in a couple of other programming languages.)

3. Give feedback of the progress of a long running program execution to the caller in a 5250 session. The information is automatically displayed in the bottom of the screen. (I don't know any details any more as I haven't coded that for eons ;-) ).

4. ... probably some more cases I currently don't recall ;-)

Have a great day!


On 03.11.23 21:50, Patrik Schindler wrote:

I'm seeking out once more to grok IBM i messages, especially QMHSNDPM/QMHRCVPM. There are a lot of examples to be found by Google but those examples always assume context with some actual program implementation. Also, there is documentation from IBM, which largely assumes being born in the OS/400 world.

Is anyone aware of some writeup, shedding light on the topic from another angle: When someone has UNIX programming experience? This is not necessarily about C but also about ILE RPG. In the end, the programming language shouldn't matter for better understanding. I'm writing to this group because I assume that people programming in C might have a background from other operating systems.

I'm still thinking that IBM i messages are a bit like UNIX signals, but much more extensive. Opinions are welcome.

Also, the description of real world use cases for exchanging messages between applications might help to understand. Things I've found with Google also were rather complex and way too theoretical for my brain to digest. ;-)


:wq! PoC

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.