ILE COBOL Language Reference

I-O Phrase (Sequential Files)

Only device types DISK and DATABASE can be opened for I-O.

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.

+-------------------------------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. For more information on this command, see the CL and APIs section of the Programming category in the iSeries Information Center at this Web site -http://www.ibm.com/eserver/iseries/infocenter.

+----------------------------End of IBM Extension----------------------------+

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 ]