Format 9: SET for adjusting pointers

When this format of the SET statement is executed, the address contained in pointer-data-item is increased (UP BY) or decreased (DOWN BY) by a value that corresponds to the value in the sending field.

Format 9: SET statement for adjusting pointers

Read syntax diagramSkip visual syntax diagramSETpointer-data-itemUP BYDOWN BYidentifier-8integer-3LENGTH OFidentifier-9
pointer-data-item
The receiving field must be an elementary data item with USAGE IS POINTER.
identifier-8
This sending field must be an elementary integer data-item.

identifier-8 cannot be a floating-point data item.

integer-3
This sending field must be an integer.
identifier-9
For more information on the rules for identifier-9, see LENGTH OF.