HP Guardian User Manual page 142

Hide thumbs Also See for Guardian:
Table of Contents

Advertisement

Using FUP for Advanced File Management
Loading a Partition of an Alternate-Key File
This example uses a key-sequenced, partitioned file named $VOL1.SVOL.PRIFILE.
The file has alternate keys. The length of its primary-key field is 10. It has three
alternate-key fields with key specifiers F1, F2, and F3. The length of each alternate-key
field is 10 bytes.
All the alternate-key records are contained in one alternate-key file that is partitioned
over three volumes. (To create such an alternate-key file, you must enter a SET NO
ALTCREATE command to prevent automatic creation of an alternate-key file, and then
create the partitioned alternate-key file separately.) Each volume contains the alternate-
key records for one alternate-key field. This is possible because the key specifier for
each alternate-key field is also the partial-key value for the secondary partitions.
The primary partition of the partitioned, alternate-key file is $VOL1.SVOL.AFILE. It
contains the alternate-key records for the key specifier F1.
Partitions of the alternate-key file AFILE also reside in volumes $VOL2 and $VOL3.
$VOL2.SVOL.AFILE contains the alternate-key records for the key specifier F2.
$VOL3.SVOL.AFILE contains the alternate-key records for the key specifier F3.
To load the alternate-key records for the key specifier F2 into the file
$VOL2.SVOL.AFILE, enter:
-VOLUME $VOL1.SVOL
-CREATE TEMP, EXT 30
-BUILDKEYRECORDS PRIFILE, TEMP, "F2", RECOUT 22, BLOCKOUT 2200
-LOAD TEMP, $VOL2.AFILE, PARTOF $VOL1, RECIN 22, BLOCKIN 2200
-PURGE ! TEMP
The CREATE command creates a temporary disk file to be used for output from the
BUILDKEYRECORDS command. Next, BUILDKEYRECORDS generates alternate-
key records that are to be loaded into the new file. The BUILDKEYRECORDS
BLOCKOUT option specifies record blocking to improve the efficiency of disk write
operations.
The LOAD command loads the secondary partition $VOL2.SVOL.AFILE. Because the
SORTED option is not included, records are sorted before they are loaded. The RECIN
option in the LOAD command specifies the same record blocking that was specified
with the RECOUT option in the BUILDKEYRECORDS command.
Increasing the Extent Size of a Partition
This example uses a key-sequenced partitioned file ($VOL1.PARTFILE.PART) with
secondary partitions in volumes $VOL2 and $VOL3. To increase the extent size of the
partition in $VOL2, enter:
-VOLUME $VOL1.PARTFILE
-ALTER PART, PART ( 1, $VOL2, 120, 12 )
-RENAME $VOL2.PART, $VOL2.TEMP, PARTONLY
-SET LIKE $VOL2.TEMP
-SET EXT ( 120, 12 )
-CREATE $VOL2.PART
-DUP $VOL2.TEMP, $VOL2.PART, OLD, PARTONLY
-PURGE $VOL2.TEMP
Guardian User's Guide —425266-001
8- 20
Modifying Partitioned Files

Advertisement

Table of Contents
loading

Table of Contents