Using FUP for Advanced File Management
Guardian User’s Guide — 425266-001
8- 20
Modifying Partitioned Files
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:
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.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
-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
Страница 24: ...About This Guide Guardian User s Guide 425266 001 xxii Your Comments Invited ...
Страница 30: ...Part I Using the Compaq Tandem Advanced Command Language TACL Guardian User s Guide 425266 001 ...
Страница 100: ...Part II Managing Files Using the File Utility Program FUP Guardian User s Guide 425266 001 ...
Страница 146: ...Part III Managing Disk and Tape Processes Guardian User s Guide 425266 001 ...
Страница 232: ...Backing Up and Restoring Disk Information Guardian User s Guide 425266 001 11 26 Backcopy Examples ...
Страница 234: ...Part IV Using the Spooler and Its Utilities Guardian User s Guide 425266 001 ...
Страница 248: ...Introduction to the Spooler Guardian User s Guide 425266 001 12 14 Sending Output to a SPOOL DEFINE ...
Страница 300: ...Performing Routine Spooler Operations Using Spoolcom Guardian User s Guide 425266 001 14 38 Problem Solving Summary ...
Страница 322: ...Part V Security Features and Other Guardian Utilities Guardian User s Guide 425266 001 ...
Страница 368: ...Monitoring Event Messages Guardian User s Guide 425266 001 17 14 Using the Event Viewer ...
Страница 378: ...Displaying Version and System Information Guardian User s Guide 425266 001 18 10 Task 2 Interpret SYSINFO Output ...
Страница 410: ...Monitoring Hardware Components Guardian User s Guide 425266 001 19 32 Automating System Monitoring ...
Страница 460: ...Index Guardian User s Guide 425266 001 Index 24 Special Characters ...