Random access

For random access, code ACCESS IS RANDOM in the FILE-CONTROL paragraph.

For indexed files, records are accessed according to the value you place in a key field (primary, alternate, or relative). There can be one or more alternate indexes.

For relative files, records are accessed according to the value you place in the relative key.

Related concepts  
Sequential access  
Dynamic access