Read by relative record number operation

This operation positions the file to the record in the arrival sequence access path that is identified by the relative record number, and gets that record.

The relative record number must identify an active record and must be less than or equal to the largest active relative record number in the member. This operation also reads the record in the arrival sequence access path identified by the current file position plus or minus a specified number of records. (The CHAIN statement in the RPG/400® language and the READ statement in the COBOL/400® language are examples of this operation.) Special consideration should be given to creating or changing a file to reuse deleted records if the file is processed by relative record processing.

Related concepts
Reuse deleted records