A Screen Description entry specifies the attributes, behavior, size and location for a referenced screen item which is accepted
or displayed at run time.
The availability of screen attributes is dependent on your terminal hardware and operating system and COBOL run-time support.
The following are not a part of X/Open screen handling:
- ACCEPT (Formats 3 and 5)
- AUTO-SKIP (synonym for AUTO)
- BEEP (synonym for BELL)
- COL (synonym for COLUMN)
- CONTROL
- DISPLAY (Format 3)
- EMPTY-CHECK (synonym for REQUIRED)
- GRID
- LEFTLINE
- LENGTH-CHECK (synonym for FULL)
- NO-ECHO (synonym for SECURE)
- OCCURS
- OVERLINE
- PROMPT
- SIZE
- ZERO-FILL
General Format
Syntax Rules
- Each Screen Description entry must start with a level number from 01 through 49.
- Each level 01 item must have a screen-name.
- Screen-name must immediately follow level number and conform to the rules for user-defined names.
- A screen item can be referenced only in a Format 4 ACCEPT or Format 2 DISPLAY statement.
- Each elementary screen item must contain at least one of the following clauses: BELL, BLANK LINE, BLANK SCREEN, COLUMN, LINE,
PICTURE, VALUE.
- The data items in the FROM, TO and USING phrases are associated with the screen item. The USING phrase is equivalent to the
combination of a FROM and TO phrase, each specifying the same field.
- An ACCEPT can be executed on a group screen item containing screen items with FROM or VALUE phrases only if that group also
contains screen items with TO or USING phrases.
- The clauses following screen-name can be specified in any order.
- A clause that appears in the description of a group screen item applies to all the elementary subordinate items in that group
in whose descriptions it would be allowed.
- Any non-01 level screen item can have a data name, FILLER, or no name. If no name is used, then FILLER is assumed (and the
item can never be explicitly referenced).
- If the same clause is specified more than once for the same screen item, the clause which appears at the lowest level within
the hierarchy is the one which takes effect.
-
Table 1 summarizes the screen description entry clauses available in the Screen Section for use with different types of screen fields
and the WITH phrase options for use with the ACCEPT and DISPLAY statements.
Table 1. Permitted Use of Options
Screen Description Entry Clauses/ WITH Phrases
|
Screen Section
|
WITH Phrase
|
Input Field
|
Output Field
|
Update Field
|
Literal Field
|
ACCEPT
|
DISPLAY
|
AUTO
|
X
|
|
X
|
|
X
|
|
BACKGROUND-COLOR
|
X
|
X
|
X
|
X
|
X
|
X
|
BELL
|
X
|
X
|
X
|
X
|
X
|
X
|
BLANK
|
X
|
X
|
X
|
X
|
|
X
|
BLANK WHEN ZERO
|
X
|
X
|
X
|
|
|
|
BLINK
|
X
|
X
|
X
|
X
|
X
|
X
|
COLUMN
|
X
|
X
|
X
|
X
|
|
|
ERASE
|
X
|
X
|
X
|
X
|
X
|
|
FOREGROUND-COLOR
|
X
|
X
|
X
|
X
|
X
|
X
|
FULL
|
X
|
|
X
|
|
X
|
|
GRID
|
X
|
X
|
X
|
X
|
X
|
X
|
HIGHLIGHT
|
X
|
X
|
X
|
X
|
X
|
X
|
JUSTIFIED
|
X
|
X
|
X
|
|
|
|