30 pts.
 error message
Hai, i want to know the command to dispaly the description of error messages.pls clear my doubt..

Software/Hardware used:
ASKED: June 10, 2008  10:32 AM
UPDATED: June 10, 2008  3:37 PM

Answer Wiki:
The command is ? WRKMSGD MSGID(X) MSGF(QCPFMSG). You provide the message ID in place of "X". Most common messages will exist in the message file QCPFMSG (Those that begin with CPF* & MCH*). If you can't find it there, search for an *MSGF object (DSPOBJD) that starts with the Qxxx where "xxx" is the first three characters of the message id. That seems to be the pattern IBM has been following for their message IDs.
Last Wiki Answer Submitted:  June 10, 2008  1:34 pm  by  Sholmbe   40 pts.
All Answer Wiki Contributors:  Sholmbe   40 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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:

http://www.geocities.com/alex_nubla/tips.htm

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.

 2,195 pts.