U@PRINTLOGMSG

U@PRINTLOGMSG gets and displays an error message for errors associated with application program processing. Before entry, the caller sets the inputs in CRTWS. The error message (E@CRTMESSAGE), as built, is left in CRTWS after displaying.

Module BATCHERR
Input

E@PGMCODE

E@ERRORCAT

If you do not explicitly set the error category, the API assumes that the error category is the same as the program code.

E@MSGNBR

E@ERRORVARS

Output

E@CRTMESSAGE (expanded message)

E@ERRORCAT(reset)

E@MSGNBR (reset)

E@ERRORVARS (reset)