The file is opened for both input and output operations. The file position indicator is set to the first record in the file. If no records exist in the file, the file position indicator is set so that processing of the first sequential READ statement results in an AT END condition.
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.
+-------------------------------IBM Extension--------------------------------+
The first record to be made available to the program can be specified at run time by using the POSITION parameter on the OVRDBF CL command. See the ILE COBOL for AS/400 Programmer's Guide for more information on this command.
+----------------------------End of IBM Extension----------------------------+
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.