Special Considerations for Indexed Files—Sequential Access

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.
  • 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.

If you specify both OPTION(*BLK) and the BLOCK CONTAINS clause, the blocking factor applies.