Pathway/iTS SCREEN COBOL Reference Manual (H06.10+, J06.03+)

Data Division
HP NonStop Pathway/iTS SCREEN COBOL Reference Manual426750-003
5-23
Screen Description Entry
A base screen can be displayed independently. This type of screen can contain
areas upon which overlay screens can be displayed.
An overlay screen is displayed in an overlay area of a base screen. This allows a
base screen (with, for example, a constant header section) to be used with various
overlay screens.
The structure of the screen description entry is similar to a data description entry. The
screen description entry is a series of declarative sentences, each beginning with a
level number to indicate the hierarchy. A higher number indicates that the entry is
subordinate to the previous entry. The 01 level is the highest statement in the
paragraph. Subordinate entry levels can be any number from 02 through 49.
The syntax for screen description entries is:
Level 01 introduces a screen description entry. This level defines the name of the
screen (a name by which the screen is known throughout the program), defines the
size of the screen, and indicates whether the screen is a base or overlay screen. The
intermediate levels define groups of items. The highest numbered levels define the
characteristics of the screen fields.
The screen description can have the following parts: screen name, screen overlay
area, screen group, and screen field. Each of these parts defines a specific attribute of
the screen. The following example illustrates a screen description entry:
SCREEN SECTION.
01 ENTER-AMT BASE SIZE 12, 80.
05 FILLER AT 1, 12 VALUE "ORDER DETAIL ENTRY".
05 FILLER AT 2, 1 VALUE "CUSTOMER".
05 FILLER AT 4, 1 VALUE "ITEM".
05 FILLER AT 4, 10 VALUE "QUANTITY".
05 LINE1-HEADER AT 5, 1 VALUE "MENU LIST".
05 OVER1 AREA AT 6, 1 SIZE 10,80.
SCREEN SECTION.
01
base-screen-name
[ BASE ] [ SIZE
clause
]
[
input-control-character clauses
]
[
field-characteristic clauses
] ... .
{
screen group
} ...
{
screen field
}
[
screen overlay area
]
[ 01
overlay-screen-name
OVERLAY SIZE
clause
]
[ ]
[ [
field-characteristic clauses
] ... . ]
[ ]
[ {
screen group
} ... ]
[ {
screen field
} ]