RMVWDW (Remove Window) Keyword for Display Files--Example

Figure 238 shows how to specify the RMVWDW keyword.

Figure 238. Specifying the RMVWDW Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A          R WINDOW1                   WINDOW(6 15 9 30)
A            FIELD1         5A  B  2  2
A            FIELD2        20A  B  8  5
A          R WINDOW2                   WINDOW(&LINE &POS 9 30)
A  01                                  RMVWDW
A            FIELD3         5A  B  2  2
A            FIELD4        20A  B  8  5
A            LINE           2S  P
A            POS            3S  P
A

WINDOW1 is already on the display. If indicator 01 is set on and WINDOW2 is written to the display, WINDOW1 is removed before WINDOW2 is displayed. If indicator 01 is off when WINDOW2 is written to the display, WINDOW1 remains on the display when WINDOW2 is displayed.