Statement: Positions a direct access file at a particular record and sets the associated variable of the file to that record number. It is comparable to a direct access READ statement with no I/O list, and it can open an existing file. No data transfer takes place.
Syntax
See Also: Forms for Direct-Access READ Statements, I/O Control List
Example
In the following example, the FIND statement positions logical unit 1 at the first record in the file. The file's associated variable is set to one:
FIND(1, REC=1)
In the following example, the FIND statement positions the file at the record identified by the content of INDX. The file's associated variable is set to the value of INDX:
FIND(4, REC=INDX)