You can view or print messages and exception messages.
You can use the Work with Message Descriptions (WRKMSGD) or Display Message Description (DSPMSGD) CL commands view or print single messages or a range of message descriptions in a message file. For example:
DSPMSGD RANGE(*FIRST IDU0571) MSGF(QIDU/QIDUMSG) FMTTXT(*NO) OUTPUT(*PRINT)
To see the exception messages which can be generated with a command, see the description of the command.