Priority among Selected Keywords for Display Files

You can specify either SFLMSG or SFLMSGID several times for a single subfile control record format. In your program, set option indicators to select a particular message to be displayed and to select particular fields to be displayed in reverse image. Several fields can be displayed in reverse image in different records of a subfile when the subfile is displayed again. However, only one message can be displayed at one time.

If more than one error message is selected at a time, the OS/400 program displays the first of the following:

  1. ERRMSG (If more than one ERRMSG keyword is selected, the first one selected is displayed.)
  2. ERRMSGID (If more than one ERRMSGID keyword is selected, the first one selected is displayed.)
  3. SFLMSG (If more than one SFLMSG keyword is selected, the first one selected is displayed.)
  4. SFLMSGID (If more than one SFLMSGID keyword is selected, the first one selected is displayed.)
  5. Message fields (M in position 38) (If more than one message field is selected, the first one selected is displayed.)

Multiple subfile messages (SFLMSG and SFLMSGID) are allowed on error subfiles.

Option indicators are valid for these keywords.