COBOL Manual for TNS and TNS/R Programs

Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs522555-006
9-225
SET UP or SET DOWN
SET UP or SET DOWN
SET UP increments data items addresses or indexes; SET DOWN decrements them.
Topics:
POINTER Data Items
Nonpointer Data Items
POINTER Data Items
SET UP increments a pointer by an integral number of memory locations. SET DOWN
decrements a pointer by an integral number of memory locations.
pointer
is a data item with USAGE POINTER. In these parameter descriptions, assume
that the value of pointer is the address p.
number-of-locations
identifier-1
is either an elementary numeric data item described as an integer or a function
that returns an integer value. If number-of-locations is identifier-1,
and the value of identifier-1 is n, then pointer is adjusted so that it
references the address p +n bytes for SET UP or p -n bytes for SET DOWN.
integer
is a numeric literal whose value is an integer. If number-of-locations is
integer, then pointer is adjusted so that it references the address
p +integer bytes for SET UP or p -integer bytes for SET DOWN.
SET BYpointer UP
DOWN
number-of-locations
VST608.vsd
identifier-1
integer
VST609.vsd