ILE COBOL Language Reference

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:

Special Considerations for Device Type DISK

If dynamic file creation has been specified and the file is an optional file (SELECT OPTIONAL in the file-control entry), then the OPEN statement will create the file if it is not already available.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]