SCREEN UNPASTE_WINDOW removes the specified window from the drawing board (if the window is pasted within the range of the terminal screen). It does not delete the window or the window contents. Any other window which was covered when the specified window was pasted will become visible again.
SCREEN UNPASTE_WINDOW /USING/ window_id
window_id | is an integer system field, Global Storage (GS) field, or user-defined field that contains the window ID assigned to the window. |
SCREEN UNPASTE_WINDOW USING MAIN_ID
This example unpastes the MAIN_ID window. The window is still in memory and can be repasted at any time by using the SCREEN PASTE_WINDOW command/statement.
NOTES: A window can be unpasted that is not pasted without causing an error. This eliminates the need for tracking which windows are pasted.
SEE ALSO: SCREEN PASTE_WINDOW (earlier in this section).