ILE COBOL Language Reference

Relative Files

Relative files can be read from the following device types:

Relative files can be read in sequential, random, or dynamic access modes.

When a relative file is read in sequential access mode, the record that is made available by the READ statement is determined as follows:

If the RELATIVE KEY phrase is specified for this file, READ statement processing updates the RELATIVE KEY data item to indicate the relative record number of the record being made available.

When a relative file is read in random access mode, the record with the relative record number contained in the RELATIVE KEY data item is made available. If the file does not contain such a record, the INVALID KEY condition exists, and READ statement processing is unsuccessful.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]