Code the input and output statements shown below to process a line-sequential file.
You can open a line-sequential file as INPUT, OUTPUT, or EXTEND. You cannot open a line-sequential file as I-O.
With sequential processing, a program reads one record after another in the same order in which the records were entered when the file was created.
A program writes new records to the end of the file.
related tasks
Defining line-sequential files and records in COBOL
Describing the structure of a line-sequential file
Opening line-sequential files
Reading records from line-sequential files
Adding records to line-sequential files
Closing line-sequential files
Handling errors in line-sequential files
related references
OPEN statement (Enterprise COBOL Language Reference)
READ statement (Enterprise COBOL Language Reference)
WRITE statement (Enterprise COBOL Language Reference)
CLOSE statement (Enterprise COBOL Language Reference)