ERRMSGID Keyword for Display Files

The format of the keyword is:

ERRMSGID(msgid [library-name/]msg-file [response-indicator] [&msg-data])

For ERRMSGID, the parameters specify:

The response indicator, if specified, should be the same as the option indicator used to condition the ERRMSGID keyword. On the subsequent input operation, after the display of the error message, the OS/400 program turns off the indicator. However, if the response indicator is also specified on another keyword such as CHANGE, CAnn, or CFnn, the on/off setting of the response indicator is based on the results of the function provided by the CHANGE, CAnn, or CFnn keyword.

Note:
Indicator text cannot be specified on the ERRMSGID keyword.

The msg-data field, if specified, contains the replacement text for the specified message. The field must exist in the record format and the field must be defined as a character field (data type A) with usage P. For more information on how replacement text works, refer to the Send Program Message CL command in the manual.