Special Considerations for Sequential Access Mode
IBM Extension
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 IBM® i Information Center at this Web site - http://www.ibm.com/systems/i/infocenter/. End of IBM Extension
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 file access is sequential.
- The organization of the file is indexed and the file is open only for input or output; or the organization of the file is relative, and the file is open only for input.
- The file is assigned to DISK or DATABASE
- No START statements are specified for the file.
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.