Sample Tacl Script To Convert An Enscribe 64P File To 16P - HP BACKCOPY Reference Manual

Guardian disk and tape utilities
Table of Contents

Advertisement

NOTE:
To restore an enhanced key-sequenced file (more than 16 partitions) onto a system which
only supports classic key-sequenced files (up to 16 partitions), you need to:
Restore each partition from the enhanced key-sequenced file onto the system one at a time.
Attach that partition to a temporary classic key-sequenced file to gain access to the data
records in the partition.
Copy the records from that partition to the target key-sequenced file as described in the
following procedure.
This procedure assumes you are restoring an enhanced key-sequenced (EKS) file from a source
system that is not connected to the destination system.
1.
You need to have three temporary work volumes in addition to the volumes where the target
key-sequenced file partitions will reside.
2.
Create the target key-sequenced file (with up to 16 partitions) with alternate key files and
partition keys to handle all of the records from the enhanced key-sequenced file being restored.
3.
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>, do 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 above 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>
A sample TACL script that automates this process is on the next page.

Sample TACL Script to Convert an Enscribe 64P File to 16P

=======================================================================
== @COPYRIGHT 2011, Hewlett Packard
=======================================================================
?SECTION E64TOE16 MACRO
========================================================================
== Macro to convert an Enscribe 64 Part file to a 16 part file
== The source is either a Pak file or a tape archive of the E64 file
== To invoke the macro, load it and run without any command line options
162 RESTORE

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

PakUnpakRestoreDcomDsapBackup ... Show all

Table of Contents