VMS Help
COBOL, DATA_DIVISION, clauses, ACCESS_MODE
*Conan The Librarian
|
The ACCESS MODE clause specifies the order of access for a file's
records.
The ACCESS MODE clause specifies the order of access for a file's
records.
Format 1 - Sequential File
[ ACCESS MODE IS ] SEQUENTIAL
The ACCESS MODE clause specifies the order of access for a file's
records.
Format 2 - Relative File
{ SEQUENTIAL [ RELATIVE KEY IS rel-key ] }
[ ACCESS MODE IS ] { { RANDOM } RELATIVE KEY IS rel-key }
{ { DYNAMIC } }
2.1 - rel-key
is the file's RELATIVE KEY data item.
The ACCESS MODE clause specifies the order of access for a file's
records.
Format 3 - Indexed File
{ SEQUENTIAL }
[ ACCESS MODE IS ] { RANDOM }
{ DYNAMIC }