Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.
Sloopy | Jun 10 2008 3:37PM GMT
WRKMSGD will show you a list of the messages starting from the message ID you enter on the command, or *FIRST. The default message file is QCPFMSG.
You can also use DSPMSGD, for example:
dspmsgd CPF019A
- will show you ONLY the details of the message CPF019A from QCPFMSG, and:
DSPMSGD RANGE(ERR1015) MSGF(TTSMSGS)
- will show you details of the application error message ERR1015 from application message file TTSMSGS in the library list.
Unfortunately, there is no search facility provided by IBM, so you can’t easily search the message TEXT to find a message when you don’t know the message ID. But many people (myself included) have written utilities to do that, and if you need such a utility you may well find one as freeware.
Failing that, you can output the DSPMSGD command to *PRINT and search the spooled file.
A good place to look for free iSeries utilities (but not search message file) is:
<a href="http://www.geocities.com/alex_nubla/tips.htm" rel="nofollow">http://www.geocities.com/alex_nubla/tips.htm</a>
Regards,
Sloopy
PS: It has just occurred to me that perhaps you are asking how to display the error message text from within a program - if this is what you are after, please respond and restate your question, and then we can answer that.