Return messages

Return messages, which Enrichment stores in the system variable %%RM, are C messages that indicate why certain functions failed. For example, if you use the EXISTS function on a file that does not exist, Enrichment sets the %%RM system variable to the C message “An I/O abend has been trapped.”

The figure below shows an example of the %%RM system variable in the rule file.

IF NOT EXISTS('/usr/lib/myfonttable') THEN
   %%Msg = %%RM
   MESSAGE(1, W, "Could not open font table - " | %%Msg)
ENDIF