The file is opened for input 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:
+-------------------------------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----------------------------+
Under OPTION(*NOBLK), the compiler generates code to block output records and unblock input records if the following conditions are satisfied:
The BLOCK CONTAINS clause does not control the blocking factor.
START statements are allowed if you specify both OPTION(*BLK) and the BLOCK CONTAINS clause. The BLOCK CONTAINS clause controls the blocking factor for all files.
+-------------------------------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----------------------------+
Also, under OPTION(*BLK), the BLOCK CONTAINS clause causes the compiler to generate code that blocks output records and unblocks input records if the following conditions are satisfied:
If the BLOCK CONTAINS clause specifies a record size of zero, the system default blocking factor applies.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.