Listing Message Files
Q: Option 6 on the Work with Message Description (WRKMSGD) screen allows you to individually select messages to be printed. Is there a command which selects all messages in the message file to be printed?
A: Your question can be answered with:
DSPMSGD RANGE(*FIRST *LAST) + MSGF(...) OUTPUT(*PRINT)
Add DETAIL(*BASIC) if you want only the first-level text for each message, or DETAIL(*FULL) for complete information. If you select *FULL on a large message file, such as QSYS/QCPFMSG, be prepared to generate several thousand pages of printout. Who knows, you may even have to file an environmental impact report with the EPA for the deforestation.