
FUP Commands
File Utility Program (FUP) Reference Manual—523323-014
2-11
ALTER Parameters for All File Types
CODE file-code
alters the file code. Specify
file-code
as an integer from 0 through 65,535. The
default
file-code
is zero. File codes 100 through 999 are reserved for use by
HP.
LOCKLENGTH generic-lock-key-length
is the lock-key length. The generic lock-key length determines the grouping of
records that share a single lock. The value specified must be between zero and the
key length of the file.
MAXEXTENTS maximum-extents
sets the maximum number of extents to allocate (for nonpartitioned files only).
Specify
maximum-extents
as an integer from 16 through
n
, where
n
is a
maximum value determined by the amount of free space in the file label. FUP
rounds any value you set from 1 through 15 up to 16. The absolute maximum is
978 extents. The default is 16.
You cannot always allocate all the extents specified by
maximum-extents
. The
actual number of extents that you can allocate depends on the amount of space in
the file label. If there are alternate keys or partitions, the maximum number of
extents allowed is fewer than 978.
If you specify MAXEXTENTS and the file is Format 1, you must consider the
primary and secondary extent sizes to avoid exceeding the maximum file size for a
Format 1 file. When the primary and secondary extent size with the specified
MAXEXTENT size is larger than two gigabytes, the ALTER operation rejects the
request with file-system error 21 (illegal count specified) if the file is Format 1.
When the primary and secondary extent size with the specified MAXEXTENT size
is larger than four gigabytes, the ALTER operation rejects the request with file-
system error 12 (file in use) if the file is:
format 2 file that is not key-sequenced and not partitioned
format 2 partitioned file that is key-sequenced and the operation is performed
on other than the base partition
currently less than 4 gigabytes
currently opened by another process
If the file is a partitioned file that is not key-sequenced, the ALTER operation
rejects the request with file-system error 2 (operation not allowed on this type of
file).
Note.
For a list of reserved file codes, see
Table 2-2, System File Code Definitions,
on
page 2-90.