Sequential file organization
A sequential file contains records organized by the order in which they were entered. The order of the records is fixed.
Records in sequential files can be read or written only sequentially.
After you place a record into a sequential file, you cannot shorten,
lengthen, or delete the record. However, you can update (REWRITE
)
a record if the length does not change. New records are added at the
end of the file.
If the order in which you keep records in a file is not important, sequential organization is a good choice whether there are many records or only a few. Sequential output is also useful for printing reports.