SETOF (Set Off) Keyword for Display Files --Example

Figure 242 shows how to specify the SETOF keyword.

Figure 242. Specifying the SETOF Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A          R CUSMST                    SETOF(63 'On=display MSG2000 +
00020A                                         CONSOLEMSG')
00030A            QRYORD         3  0I  5  3
00040A  63                                  ERRMSGID(MSG2000 CONSOLEMSG)
     A

A MSG2000 message is displayed on the message line when the program sends an output operation to CUSMST with indicator 63 set on. On the next input operation to CUSMST, the SETOF keyword sets off indicator 63. (Indicator 63 is used as both an option and a response indicator.)