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:
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.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.