ILE COBOL Language Reference

I-O Phrase (Indexed and Relative Files)

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:

Special Considerations for Relative Files--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.

+-------------------------------IBM Extension--------------------------------+

Special Considerations for Sequential or Dynamic Access Modes

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----------------------------+


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