
FUP Commands
File Utility Program (FUP) Reference Manual—523323-014
2-176
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.
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 in the range 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 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:
[ NO ] COMPRESS
sets or clears the states of key compression in both index and data blocks. The
default setting is NO COMPRESS. The key offset must be 0 for key compression
in data blocks, and the maximum record size is reduced by one byte.
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