Pathway/iTS SCREEN COBOL Reference Manual (G06.24+, H06.03+, Pathway/iTS 1.0+)

Data Division
Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual426750-001
5-44
Field-Characteristic Clauses
literal-1
is a numeric literal that specifies the number of field occurrences on a line.
literal-k
is a numeric literal that specifies the horizontal spacing of the field columns.
When OFFSET is specified, literal-k is the number of spaces between the first
column of a field occurrence (literal-1) and the first column of the next field
occurrence (literal-1 +1) on the same line.
When SKIPPING is specified, literal-k is the number of spaces between the
last column of a field occurrence (column k) and the first column of the next field
occurrence (column k+1) on the same line. There can be at most (literal-1) -1
separations. If there are fewer separations, the last literal-k is used repeatedly.
No separation is required after the last literal.
literal-2
is a numeric literal that specifies how many lines contain occurrences.
literal-3
is a numeric literal that specifies how many lines are skipped between lines
containing occurrences of the field.
DEPENDING
indicates that the number of occurrences is variable.
data-name-1
is the unsubscripted name of an elementary numeric item where the current number
of occurrences is defined. This item must be defined in the Working-Storage
Section or Linkage Section. On input (execution of an ACCEPT statement), this
item is set. On output (execution of a DISPLAY statement), this item is used to
define the number of values output. If FILL and OCCURS clauses are both used
with a field, on output the FILL clause applies to all occurrences of the field,
regardless of the setting of data-name-1 in a DEPENDING ON clause.
The following conventions apply to the OCCURS clause:
When the IN...COLUMNS phrase is omitted, a single occurrence on each line is
indicated.
The order of the phrases determines the order in which the occurrence numbers are
assigned to the occurrences.
°
If the ON...LINES phrase is specified first, the occurrences are numbered
sequentially from line to line down a column.
°
If the IN...COLUMNS phrase is specified first, the occurrences across a line are
numbered sequentially.