Find a message ID based on the message text
Ever want to use an existing message in a message file and try to find the message ID based on the message text? Here's how to do it.
Code: Make sure your default outq is not started to a writer.
Issue the following command:
DSPMSGD RANGE(*ALL) MSGF(XXXLIB/XXXMSGF) OUTPUT(*PRINT)
Locate the spool file:
Device or Opt File User Queue 5 QPMSGD
Use the spool file scan function to find text in the message and identify the message ID.
This was first published in August 2001
Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.