Reading by relative record number operation

 

This operation positions the file to the record that is identified by the relative record number in the arrival sequence access path 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 language and the READ statement in the COBOL 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.

 

Parent topic:

Reading database records using an arrival sequence access path

 

Related concepts


Reusing deleted records