Compaq COBOL AAQ2G1FTK User Manual

Page 423

Advertising
background image

Using ACCEPT and DISPLAY Statements for Input/Output and Video Forms

11.3 Designing Video Forms with Screen Section ACCEPT and DISPLAY

Table 11–4 (Cont.) Character Attribute Clauses for Screen Description Formats

Clause

Formats

Function

BLANK SCREEN

1, 2, 3

Clears the screen before displaying the screen item.

BLANK WHEN
ZERO[ES]

3

Replaces zeros with spaces when a screen item’s value
is zero.

BLINK

2, 3

Causes the displayed item to blink.

COLUMN
NUMBER

2, 3

Specifies the horizontal position of an item on the
screen.

ERASE EOL

2, 3

Clears the line from the cursor position to the end.

ERASE EOS

2, 3

Clears the screen from the cursor position to the end.

FOREGROUND-
COLOR

1, 2, 3

Specifies by number (in range 0–7) the screen item’s
foreground color. See the color list that follows.

FULL

1, 3

Specifies that a screen item must either be left
completely empty or be entirely filled with data.

HIGHLIGHT

2, 3

Specifies that the field is to appear on the screen with
the highest intensity.

JUSTIFIED
RIGHT

3

Specifies nonstandard data positioning. This can cause
truncation of the leftmost characters if the sending
item is too large. Otherwise, this aligns the data at the
rightmost character position.

LINE NUMBER

2, 3

Specifies the vertical position of an item on the screen.

LOWLIGHT

2, 3

Specifies that the field is to appear on the screen with
the lowest intensity. If only two levels of intensity are
available, LOWLIGHT is the same as normal.

REQUIRED

1, 3

Specifies that at least one character must be entered in
the input or update field.

REVERSE-
VIDEO

2, 3

Specifies that the foreground and background colors be
exchanged.

SECURE

1, 3

Specifies that no characters are displayed when the
input field is entered.

SIGN LEADING
[SEPARATE]

1, 3

Specifies the existence of a sign character as the
leading character in the field. The SEPARATE option
is always in effect if the screen item has an ’S’ in the
PICTURE clause. Therefore, for a screen item, the sign
character never shares its position with a digit.

SIGN TRAILING
[SEPARATE]

1, 3

Specifies the existence of a sign character as the
trailing character in the field. The SEPARATE option
is always in effect if the screen item has an ’S’ in the
PICTURE clause. Therefore, for a screen item, the sign
character never shares its position with a digit.

UNDERLINE

2, 3

Specifies that each character of the field is to be
underlined when displayed.

USAGE DISPLAY

1, 3

Specifies the internal format of a data item as
DISPLAY (the default).

When you specify the foreground and background colors for a screen item, you
use numbers in the range 0–7, which represent specific colors as described in
Table 11–5. Note that these colors are supported only on terminals that support
ANSI Standard color sequences.

1

1

This does not include the VT100, VT200, VT300, VT400, and VT500 series terminals.
On workstations that emulate these terminal types, this restriction may not apply.

Using ACCEPT and DISPLAY Statements for Input/Output and Video Forms 11–33

Advertising