END DISPLAY keywords terminate the DISPLAY ARRAY statement. These keywords are required when:
A DISPLAY ARRAY statement without any optional clauses is a part of a CONSTRUCT, INPUT, or INPUT ARRAY statement, if the ON KEY (or ON ACTION) clause of the enclosing statement follows the enclosed DISPLAY ARRAY statement. If the END DISPLAY keywords were absent from the example below, it would have been not clear to which statement the ON KEY clause refer: to the DISPLAY ARRAY statement or to the INPUT/CONSTRUCT statement:
INPUT BY NAME order_id.*
BEFORE INPUT
DISPLAY ARRAY ord_arr TO ord_scr.*
END DISPLAY
ON KEY (F12)
…
END INPUT
The END DISPLAY keywords are not required if a DISPLAY ARRAY statement is used independently without any DISPLAY control clauses.
The END DISPLAY keywords are not required if a DISPLAY ARRAY statement is used within any dialog block (like MENU ... END MENU).