Rocket® Enterprise Developer (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.
LOCATE
Purpose
For locate mode processing. Use the LOCATE statement only with an OUTPUT SEQUENTIAL BUFFERED file to allocate storage within an output buffer for a based variable and to set a pointer to the location of the next record.
Syntax
LOCATE based-var
FILE (file-ref)
SET (pointer-ref)
KEYFROM (expression)
Parameter
- based-var
- A level-1, unsubscripted based variable.