Q
Manage Learn to apply best practices and optimize your operations.

Saving a message from a user's message queue

ISeries expert Ken Graap explains how to save a message from a user's message queue by using the DSPMSG command or writing an exit program.

Is there any way I can save messages from users' message queues? We're having a problem with inapposite messages between users.
The simplest way I can think of is to utilize the DSPMSG command to *PRTWRAP. For example:

DSPMSG MSGQ(CRITMSG) OUTPUT(*PRTWRAP)

However, user message queues can be easily cleared by users via the F11, F13 and F16 function keys, so the messages you are trying to capture may be deleted before you can capture them with DSPMSG.

You may want to explore writing exit programs for the SNDMSG, SNDBRKMSG, SNDUSRMSG, SNDNETMSG, etc.

The exit program would be executed before the command, allowing you to capture a user's message and send it anywhere you want.

You can find more information on writing exit programs here.

Dig Deeper on Data backup, storage and retrieval on iSeries

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close