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
Related Q&A from Ken Graap
The BRMS Network feature allows a BRMS system to connect to other BRMS systems via a network, and enables a user to consolidate media such as backup ... Continue Reading
The only option to correct damage preventing file journaling is to use the RCLSTG command. Continue Reading
IBM's iSeries Backup and Recovery manual answers many questions related to system backup and disaster recovery. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.