SET WINDOW

#### Search Results

Search

# SET WINDOW

`SET WINDOW` |  | 'window-name' `OFF` |

This document covers the following topics:

- SET WINDOW Usage

- SET WINDOW Syntax Description

- SET WINDOW Example

For an explanation of the symbols used in the syntax diagram, see Syntax Symbols.

Related Statements: `DEFINE WINDOW` | `INPUT WINDOW='window-name'` | `REINPUT`

Belongs to Function Group: Screen Generation for Interactive Processing

## SET WINDOW Usage

The `SET WINDOW` statement is used to activate and de-activate a window.

Any `SET WINDOW 'window-name'` or `INPUT WINDOW='window-name'` statement de-activates the window which has currently been active and activates the window specified in the statement. This means that only one window can be active at a time.

Note
If you use `SET WINDOW` to activate a window which is defined with `SIZE AUTO`, the data on the screen before the window is activated determine the size of the window.

## SET WINDOW Syntax Description

Syntax Element | Description
--- | ---
`SET WINDOW 'window-name'` | Activates the specified window, which means that all subsequent statements refer to that window until either the window is de-activated or another window is activated. The specified window must have been defined with a `DEFINE WINDOW` statement.
`SET WINDOW OFF` | De-activates the currently active window.

## SET WINDOW Example

See `DEFINE WINDOW` statement.

### On this page

- SET WINDOW Usage
- SET WINDOW Syntax Description
- SET WINDOW Example