## 9.5.14 NEXTREC Specifier

The NEXTREC specifier asks where the next record can be read or written in a file connected for direct access. It takes the following form:

    NEXTREC = nr

nr
  Is an integer scalar memory reference whose value depends on the following conditions:

  - If a record was previously read or written on the specified unit, the value of nr is one more than the number of that record.

  - If no records have been read or written, the value of nr is 1.

  - If the file is not opened for direct access or if the position is indeterminate because of an error condition, nr is zero.

Previous Page Next Page Table of Contents