MSGALARM (Message Alarm) Keyword for Display Files--Examples

Figure 212 shows how to specify the MSGALARM keyword at record level.

Figure 212. Specifying the MSGALARM Keyword at Record Level

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A          R RCD1
00020A                                      MSGALARM
00030A            FLD01          8A    12 10
00040A  12                                  ERRMSGID(XYZ0123 MSGFILE)
     A

When record format RCD1 is on the display and RCD1 is put to the display again and indicator 12 is on, the message XYZ0123 from message file MSGFILE is displayed on the message line and the work station alarm sounds.

Figure 213 shows how to specify the MSGALARM keyword at file level.

Figure 213. Specifying the MSGALARM Keyword at File Level

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A  01                                  MSGALARM
00020A          R RCD1
00030A            FLD01          8A    12 10
00040A  12                                  ERRMSGID(XYZ0123 MSGFILE)
00050A
00060A          R RCD2
00070A            FLD02          8A    12 10
00080A  10                                  ERRMSG('Message text')
     A

When record format RCD1 is on the display and RCD1 is put to the display again and indicators 01 and 12 are on, the message XYZ0123 from message file MSGFILE is displayed on the message line, and the work station alarm sounds.

When record format RCD2 is on the display and RCD2 is put to the display again and indicator 10 is on (but 01 is off), the message text is displayed on the message line and the alarm does NOT sound.