Defining the position of reserved lines
The OPTIONS element LINE defines position of dedicated
screen lines.
Syntax
OPTIONS
{ MENU LINE line-value
| MESSAGE LINE line-value
| COMMENT LINE {OFF|line-value}
| PROMPT LINE line-value
| ERROR LINE line-value
| FORM LINE line-value
} Usage
The OPTIONS statement can define the positions of reserved lines for menus,
forms and messages.
Reserved window lines are used in TUI mode. These options are not required in GUI mode. In GUI mode, these options have no effect, except when using the traditional mode, where program windows are rendered as in a dumb terminal.
COMMENT LINEspecifies the position of the comments for fields. Field comments are defined with theCOMMENTattribute in the form specification file. The default is (LAST-1) for theSCREEN, andLASTfor all other windows. The field comment display can be disabled withCOMMENT LINE OFF.ERROR LINEspecifies the position on the screen for the text of theERRORstatement. The text of theERRORstatement is always displayed independently to the current window. The default is theLASTline of the screen.MESSAGE LINEspecifies the position of the message line in the current window. This reserved line displays the text of theMESSAGEstatement. The default isFIRST+1(line 2 in the current window). Note that the default message line position is the same as theMENUoption comment line.FORM LINEspecifies the window line where forms are displayed. The default isFIRST+2(line 3 in the current window).MENU LINEspecifies the position of the menu line in the current window. This line displays the menu name and options, as defined by theMENUstatement. The default is theFIRSTline in the current window.PROMPT LINEspecifies the position of the prompt line where the text ofPROMPTstatements is displayed. The default value is theFIRSTline in the current window.
You can specify any of the following positions for each reserved line:
| Expression | Description |
|---|---|
FIRST |
The first line of the screen or window. |
FIRST + integer |
A relative line position from the first line. |
integer |
An absolute line position in the screen or window. |
LAST - integer |
A relative line position from the last line. |
LAST |
The last line of the screen or window. |