The following apply to ERRMSG:
- When an ERRMSG or ERRMSGID keyword is in effect, no processing other than
the processing for these keywords is performed for the record. If
neither keyword is in effect, the record is processed in the normal
manner.
- When the RMVWDW keyword is active, error messages are not
displayed.
- ERRMSG and ERRMSGID are valid for output-only, input-only, or output/input
fields. These two keywords cannot be specified for a constant, hidden,
program-to-system, or message field.
- For input or output capable fields, ERRMSG and ERRMSGID are in effect only
if the record containing the field for which they are specified is already on
the display.
- ERRMSG and ERRMSGID cannot be specified in a subfile record format (SFL
keyword specified). To display error messages for a subfile, see "SFLMSG (Subfile Message) and SFLMSGID (Subfile Message Identifier) Keyword for Display Files".
- ERRMSG and ERRMSGID are ignored if the variable start line number
(SLNO(*VAR) specified) has changed since the last output operation.
- If you specify ERRMSG or ERRMSGID, you should also specify RSTDSP(*YES) on
the Create Display File (CRTDSPF) or Change Display File (CHGDSPF)
command. Otherwise, data on the display can be lost if the file is
suspended.
- On an output operation that causes the display modes to be changed, ERRMSG
and ERRMSGID are ignored.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.