Sequential File

From VSI OpenVMS Wiki
Revision as of 00:32, 15 December 2019 by Jane.doe (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A sequential file is a type of file organization where records are stored adjacent to one other. To retrieve a particular record within the file, you must open the file and successively retrieve all records between the current record position and the selected record.

In OpenVMS, sequential file organization is supported for all device types; this is the only file organization for non-disk devices. A sequential file is created by default when you use the CREATE command.

To find out if a file is sequential, use DIRECTORY/FULL or the F$FILE_ATTRIBUTES() lexical: F$FILE_ATTRIBUTES(filespec,"ORG") will return "SEQ" if the file is sequential.

See also