File Utility Programming (FUP) Reference Manual
FUP Commands
File Utility Program (FUP) Reference Manual—523323-015
2-182
SET Parameters for All Structured Files
SET Parameters for All Structured Files
The create-param available depends on the type of file you want to create. These
options are available for all structured files:
BLOCK data-block-length
sets the data-block length. Specify data-block-length as an integer that is a
power of 2 from 512 bytes through 4096 bytes (512, 1024, 2048, 4096).
The default data-block-length is 4096 bytes. Blocks should not be larger than
extents. If this situation occurs, multiple extents are allocated every time a block is
required.
When you are setting file-creation attributes, you can SET BLOCK
data-block-length to any value within the valid range for this parameter, but
FUP rounds it up to a DP2 block size.
SET BLOCK command accepts block-length value as 512, 1024, 2048, 4096,
and 32,768 (32 KB) for Format 2 key-sequenced file and queue file.
You might need to decrease the number of 1 KB cache blocks and increase the
number of 4 KB cache blocks (in the DP2 configuration) if there is significant use of
the default block size (4096 bytes).
During the file-creation process, DP2 rounds up the extent size (to 2 pages or
4,096 bytes) because the extent size of DP2 files must always be an integral
multiple of the BUFFERSIZE (for unstructured files) or of the BLOCK size (for
structured files).
REC record-length
sets the record length. Specify record-length as an integer ranging from 1
through:
The default setting for record-length is 80 bytes, and the maximum record
length is reduced by one byte when data compression is used.
SET REC command accepts record-length up to 27,648 for Format 2 key-
sequenced file and queue file.
SET Parameters for Key-Sequenced Files
The create-param available depends on the type of file you want to create. These
options are available for key-sequenced files:
File Format
Maximum Value for Relative
and Entry-Sequenced Files
Maximum Value for
Key-Sequenced Files
1 Blocksize - 24 Blocksize - 34
2 Blocksize - 48 Blocksize - 56