Guardian Disk and Tape Utilities Reference
releases that only support key-sequenced files with fewer partitions:
1. Restore each partition from the enhanced key-sequenced file one at a time in the system.
2. Attach the partition to a temporary classic key-sequenced file to gain access to the data records
in the partition.
3. Copy the records from the partition to the target key-sequenced file as described in the following
procedure:
NOTE: This procedure assumes you are restoring an enhanced key-sequenced file (more
than 16 partitions) from a source system that is not connected to the destination system, and
that all of the file attributes (for example, block length, record length, and key length) of the
EKS source file restored are supported on the destination system — except for its number of
partitions.
a. You must have three temporary work volumes in addition to the volumes where the target
key-sequenced file partitions reside.
b. Create the target key-sequenced file (with up to 16 or 64 partitions) with alternate key
files and partition keys to handle all of the records from the enhanced key-sequenced file
being restored.
c. Restore each partition one at a time from the tape or a PAK file to <temp volume 1>,
using the restore partonly option.
As each partition is restored to <temp volume 1>, perform the following:
a. Create a temporary key-sequenced file with its primary partition on <temp volume 2>
and a secondary partition on <temp volume 3>, such that its attributes match those of
the restored partition on <temp volume 1>.
b. Alter the temporary key-sequenced file so that the restored partition now becomes its
secondary partition, and copy the data records from that secondary partition to the target
key-sequenced file.
c. Alter the temporary key-sequenced file again, so that its originally created secondary
partition once again becomes its secondary partition, and delete the temporary
key-sequenced file.
You can use the following FUP commands to perform the preceding procedure for each restored
partition:
• Set like <restored partition file>
• Set part (1, <temp vol 3>, pri ext, sec ext,[0,0,0,0])
• Reset partonly
• Create <temp vol 2>.<subvol>.<part file>
• Alter <temp vol 2>.<subvol>.<part file>, part(1, <part file name>)
• Copy <temp vol 2>.<subvol>.<part file>, <target file>
• Alter <temp vol 2>.<subvol>.<part file>,part(1,<temp vol 3>)
• Purge <temp vol2>.<subvol>.<part file>
• Purge <temp vol3>.<subvol>.<part file>
The following is a sample TACL script that automates this process:
=======================================================================
== @COPYRIGHT 2011, Hewlett Packard
=======================================================================
?SECTION E128CONV MACRO
========================================================================
== Macro to convert either
== i. an Enscribe 64 Partition file to a 16 partition file
== ii. an Enscribe 128 Partition file to a 64 or 16 partition file
== The source is either a Pak file or a tape archive of the input file
162 RESTORE