RMVWDW (Remove Window) keyword for display files

Use this record-level keyword to remove all existing windows on the display before this record is displayed.

This keyword has no parameters.

When the RMVWDW keyword is specified, a WINDOW keyword must be specified on the same record format. The RMVWDW keyword functions only when the WINDOW keyword defines a window. The RMVWDW keyword does not function if the WINDOW keyword specified a record format name.

Option indicators are valid for this keyword.

Example

The following example shows how to specify 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.