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...")
 
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
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.
 
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 functions|lexical]]: F$FILE_ATTRIBUTES(filespec,"ORG") will return "SEQ" if the file is sequential.
+
To find out if a file is sequential, use [[DIRECTORY (command)|DIRECTORY]]/FULL or the [[F$FILE_ATTRIBUTES()]] [[Lexical functions|lexical]]: F$FILE_ATTRIBUTES(filespec,"ORG") will return "SEQ" if the file is sequential.
  
 
=See also=
 
=See also=
 
* {{Template:Fap}}
 
* {{Template:Fap}}
 +
 +
[[Category:File Organization]]

Latest revision as of 08:46, 6 July 2023

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