Messages Directory

Directory .ZIP

These commands are examples of using a couple Message Handling APIs. These are generally useful in a 'Standard Error' process where you simply want to pass the responsibility up the stack.

If you are writing a general-purpose utility program, you might not want to handle many errors within it. Each time you call it, the error possibilities might be unique. The calling program will know more about which errors to watch for, so you pass the errors up and handle them there. This makes your utility program as simple as you can make it -- assuming that's what you want to do.

Naturally, you may include any specific error handling; these commands are appropriate for global error handling. Very similar command definitions have been published and discussed in trade magazines. All of them look pretty much the same because they do pretty much the exact same actions.

Please read the @GENERAL DISCLAIMER document for any items you should be aware of if you download any of these items.


CMDs

MOVDIAGMSG -- Move Program Messages (QMHMOVPM):

The command definition object source for QMHMOVPM. This command is used to move *DIAG messages from the current program's *msgq to the calling program's *msgq. This "bubbles" messages up the stack. This is useful in a CLP acting as a command processing program because it allows the calling program to handle any messages that occur via RCVMSG.

RSNESCMSG -- Resend Escape Message (QMHRSNEM):

The command definition object source for QMHRSNEM. This command takes an *ESCAPE message from the current program's *msgq and re-sends it to the calling program's *msgq. This "bubbles" messages up the stack. This is useful in a CLP acting as a command processing program because it allows the calling program (i.e., the program that executed the command shell for the CPP) to handle any messages that occur via MONMSG.