# GET'NEXT
> [HTML Version](get-nextstatements.htm)
**GET'NEXT #channel, \{wait’record,\} varlist**
**GET'NEXT'LOCKED #channel, \{wait’record,\} varlist**
**GET'NEXT'READ'ONLY #channel, \{wait’record,\} varlist**
These statements are similar to the corresponding GET, GET'LOCKED, and GET'READ'ONLY statements, except that instead of locating the record directly, by means of a specified key value, they simply get the next record based on the order of the index last specified in a GET or FIND statement.
The _fstatvar_ variable, from the [OPEN](openforisam-a.htm.md) statement (if within the current scope) or from [.fstat()](filefunctions.htm.md#fstat), will be set to ISAM\_NF if there are no more records in index order, or ISAM\_NA if the found record is locked, or ISAM\_EQ for success.