The following table shows the possible combinations of input-output statements for line-sequential files. 'X' indicates that the statement can be used with the open mode shown at the top of the column.
| Access mode | COBOL statement | OPEN INPUT | OPEN OUTPUT | OPEN I-O | OPEN EXTEND |
|---|---|---|---|---|---|
| Sequential | OPEN | X | X | X | |
| WRITE | X | X | |||
| START | |||||
| READ | X | ||||
| REWRITE | |||||
| DELETE | |||||
| CLOSE | X | X | X |
related concepts
Line-sequential file organization
Sequential access