|
The
integer in the OCCURS clause must be a positive
integer. |
|
The
OCCURS clause can be specified for an elementary
item or for a group item. The clause causes
contiguous area holding the elements to be
set up internally. The clause causes contiguous
area holding the elements to be setup internally.
The number elements is equal to the integer
in the OCCURS clause. The OCCURS clause cannot
be specified for an item whose level number
is 01, 66, 77 or 88. |
|
When
a data name is described with the OCCURS clause,
the data name as well as any of its subordinate
items can not be referred to in the PROCEDURE
DIVISION without a subscript. Subscript can
be either a positive integer or a data name
denoting a positive integral value or it can
be an arithmetic expression. |
|
The
highest value that a subscript can take is
the one specified by the integer in the OCCURS
clause. The lowest value of a subscript is
implicitly assumed to be 1. |
|
The
subscript must be enclosed within a pair of
parentheses. |
|
A
data name used as a subscript cannot be another
subscripted data name. However, it can be
qualified.
eg:-
TAX-RATE (A OF NEW-GROUP)
is valid.
TAX-RATE (A (K)) is invalid. |
|
If
a data name with OCCURS cluase requires any
qualification, the subscript should be written
after the last qualification.
eg:-
TAX-RATE OF DIRECT-TAX-RATE (I)
is valid.
TAX-RATE (I) OF DIRECT-TAX-RATE
is invalid. |
|
When
an entry is defined with OCCURS clause, the
VALUE clause cannot be specified for the associated
data name or any data name subordinate to
it. |
|
The
REDEFINES clause cannot appear in the same
data description entry which contains an OCCURS
clause. However, REDEFINES clause can appear
for a group item whose subordinate items are
defined with the OCCURS clause. |
|
The
OCCURS clause can appear in the data description
entry in any position after the level number
and the data name. |