COBOL Manual for TNS/E Programs (H06.03+)

Procedure Division Verbs
HP COBOL Manual for TNS/E Programs520347-003
9-214
SET UP or SET DOWN
Nonpointer Data Items
SET UP increments an index value by an integer amount. SET DOWN decrements an
index value by an integer amount.
index-name
is the name of an index whose value is to be incremented or decremented.
identifier
is the identifier of an integer numeric item whose value UP adds to the index or
DOWN subtracts from the index.
integer
is an integer that UP adds to the index or DOWN subtracts from the index. It can
be signed.
The value of each index-name is incremented (UP) or decremented (DOWN) by a
value corresponding to the number of occurrences represented by identifier or
integer. Each time, the identifier of an integer numeric item is used as it was at the
beginning of the execution of the statement.
Both before and after the execution of the SET statement, the value of the index must
correspond to an occurrence number of an element in the associated table.
BY
SET index-name UP
identifier
integer
DOWN
VST212.vsd