Difference between revisions of "Sequential File"

From VSI OpenVMS Wiki
Jump to: navigation, search
(Created page with "A '''sequential file''' is a type of file organization where records are stored adjacent to one other. To retrieve a particular record within...")
 
m
 
Line 7: Line 7:
 
=See also=
 
=See also=
 
* {{Template:Fap}}
 
* {{Template:Fap}}
 +
 +
[[Category:File Organization]]

Latest revision as of 00:32, 15 December 2019

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