FIND
PURPOSE:
To read a record from a FILE.
STATEMENT SYNTAX:
{stno} FIND{RECORD}(unit,ERR=,END=,DOM=,IND=
{,KEY=}{,TBL=}) {input var list}{IOL=}
EXAMPLE:
0120 FIND (5,KEY= K4$,DOM = 0140, ERR = 999)*,R$,*,G
0500 FIND (11,KEY= STR (R:"0000")) IOL= 0510
7600 FIND (X+1,KEY= A$+"1",ERR = 999) A$,B$,C$,*,IOL = 0900
9876 FINDRECORD(1,KEY=K$)A$
NOTES:
The FIND statement is used to READ data from a DIRECT or SORT file in the
same manner as the READ command. The only difference is seen when the
key specified in the KEY= parameter is not contained in the file.
In this case the FIND leaves the next key pointer where it is while the
READ would advance the next key pointer to the 1st key greater than the
key that was specified.
SEE:
READ