The UNSTACK&DECRYPT function locates, unstacks, and decrypts the user-specified virtual tape volumes contained on the physical stacked tape to physical tapes as specified by the user. If a volume has been invalidated (using the INVALIDATE function), it cannot be unstacked.
UNSTACK&DECRYPT also supports heterogeneous media translation. This occurs when a virtual tape volume is unstacked to a tape media that is different from the media of the original unstacked tape volume.
Note that locateblock information on an unstacked tape does not match stored locateblock information, either on the tape or on a disk directory. For library maintenance tapes with disk directories, you can either unstack to a different serial number, which causes the on-disk directory not to be referenced, or you can use the RECREATE_DIR function to re-create the directory. For DMS tapes, you can similarly re-create the directory or force DMS to not use the locateblock information.
In a typical unstack, the serial number of the output tape remains unchanged. In order to change the serial number of the output tape, you can use he AS clause.
The passphrase supplied must be the same passphrase given during the encryption process.
Examples
The following are examples of commands using the UNSTACK&DECRYPT function:
-
U TSU UNSTACKL&DECRYPT MYTAPE(PASS) TO NEW, VOLID=2(PASS2) TO OTHER FROM ENCTAP
-
U TSU UNSTACK&DECRYPT MYTAP (MEMEME) AS NEW TO OTHER FROM ENCTAP
Sample Run
The following is an example of the output of an UNSTACK&DECRYPT run.
U TSU UNSTACK&DECRYPT VOLID=2(PW) TO UNITNO=33 FROM ENCTAP #RUNNING 17067 UNSTACKING AND DECRYPTING FROM STACKED TAPE [ENCTAP] ON MT32 SUCCESSFULLY UNSTACKED AND DECRYPTED VOL 2 TO [OUTTAP] ON MT33 UNSTACK AND DECRYPT COMPLETED FROM TAPE [ENCTAP] ON MT32 #ET=28.7 PT=0.2 IO=14.7