Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section


Positions the remove pointer in a dynamic array.


SETREM position ON dynarray


position A positive integer specifying the number of bytes to increment the pointer in the dynamic array.
dynarray A dynamic array in which the pointer is positioned.


The SETREM statement positions a pointer within a dynamic array. This statement is commonly used to position a pointer for the REMOVE or REVREMOVE statements to extract data values from the dynamic array.

You can use the GETREM function to return the character position in dynarray of the SETREM pointer. REMOVE and REVREMOVE also modify this internal pointer so that repeated calls return successive element values.

See Also