EXTEND Phrase (Sequential Files)

Device types TAPEFILE, DISK, and DATABASE may be opened as EXTEND.

The EXTEND phrase permits opening the file for output operations. OPEN EXTEND statement processing prepares the file for the addition of records. These additional records immediately follow the last record in the file. Subsequent WRITE statements add records as if the file had been opened for OUTPUT. The EXTEND phrase can be specified when a file is being created.

Related Information: