WINDOW MAXIMIZE
Authorization
General User
Purpose
Use the WINDOW MAXIMIZE command to expand a window to the physical screen size.
Operands
- wname
- is the name of the window to be expanded. An = indicates the topmost window is expanded. If this operand is not specified, = is the default. Only a window defined with the TOP option can qualify as the topmost window.
Usage Notes
- The WINDOW RESTORE command returns the window to its size and location before the maximize.
- A window can be maximized whether it is connected to a virtual screen and whether the window is displayed.
- A maximized window is positioned at line 1, column 1 of the physical screen.
- A variable size window that is maximized still retains its variable size properties. Thus,
depending on how many lines exist in the virtual screen to which the window is connected, the window
may appear to be less than full screen size when it is displayed on the physical screen. For example, suppose a variable size window is connected to line one of a virtual screen that contains three data lines. When the window is maximized:
- It moves to line 1, column 1.
- Its width is the width of the physical screen.
- It contains only three data lines.
- When you maximize a window that is not showing the active virtual screen so it covers the window or windows showing the active virtual screen, the WM window is automatically displayed. For more information, see Things You Should Know About Full-Screen CMS.
Messages and Return Codes
- DMS386E Missing operand(s) [RC=24]
- DMS388E Invalid keyword: keyword [RC=24]
- DMS391E Unexpected operand(s): operand [RC=24]
- DMS921E Window wname is not defined [RC=28]
Additional system messages may be issued by this command. The reasons for these messages and their location are:
| Reason | Location |
|---|---|
| Errors in command syntax | Command Syntax Error Messages |
