Normally when you compile an RPG program (CRTRPGPGM) on the AS/400, only the first level message text (messages on the AS/400 can have first and second level text) is printed at the end of the compile listing. Often, this is not enough to let the programmer know what the real problem is. You can additionally print the second level text by specifying *SECLVL in the OPTION parameter of the CRTRPGPGM command.
However, if you don't realize you need the second level text until after your compile, and you don't feel like re-submitting the compile, you can view it on your CRT instead. Just use the Display Message Description (DSPMSGD) command. Use the message number (eg. QRG5199) in the RANGE parameter and QRPG/QRPGMSG in the MSGF parameter. You will be able to display the first and second level text to the screen.
Midrange Computing staff
LATEST COMMENTS
MC Press Online