Previous Topic: Specifying a Record LengthNext Topic: Default File Characteristics


Specifying a Block Size

The block size you specify for a file must be consistent with the logical record length of the file, as follows.

Fixed Blocked Record Format

If the record format is fixed blocked, the block size must be an integral multiple of the logical record length.

Fixed Unblocked Record Format

If the record format is fixed unblocked, the block size must equal the logical record length.

Variable Blocked Record Format

If the record format is variable blocked, the block size must be greater than or equal to the logical record length plus four.

Variable Unblocked Record Format

If the record format is variable unblocked, the block size must equal the logical record length plus four.

Undefined Record Format

If the record format is undefined, the block size must be greater than or equal to the logical record length.

The RECORD SIZE specification for a file can be removed by using IDD to set it to 0 (zero).