Under the user task (main task), the ARCHIVE user can reserve magnetic tape devices and MT cartridge devices for subtasks with:
/SECURE-RESOURCE-ALLOCATION
by entering the logical device-type code, e.g. for magnetic tape and MT cartridge:
/SECURE-RESOURCE-ALLOCATION DEVICE=*PAR(TYPE=TAPE-C4,NUMBER=3)
or in conjunction with the mnemonic device name
/SECURE-RESOURCE-ALLOCATION UNIT=mn
(For further details see the “Commands” manual [4].)
However, no operands may be specified which effect an implicit assignment of the device, i.e. for /SECURE-RESOURCE-ALLOCATION
, the TAPE and FILE operands are not permitted.
If reserved tape units or MT cartridge devices are available, the main task supplies a free device of the appropriate type and of the appropriate assignment for each subtask. ARCHIVE assumes that all volumes to be processed have the same assignments as the VSNs specified for /SECURE-RESOURCE-ALLOCATION
.
The device type for /SECURE-RESOURCE-ALLOCATION
must match the DEVICE operand specified in the EXPORT or SAVE statement, in order that the subtask can access the device.
If a storage location other than the default MAREN storage location is being used when working with ARCHIVE, the MAREN storage location must be specified both in the /SECURE-RESOURCE-ALLOCATION
command and in the ARCHIVE statements EXPORT and SAVE (MAREN-LOCATION parameter).
No MAREN storage location can be specified in the IMPORT and RESTORE statements. In this case, the MAREN storage location must be specified in /SECURE-RESOURCE-ALLOCATION.
Once the subtask has been terminated, the right to access the reserved tape units or MT cartridge devices is returned to the main task. When copying save data, requests for tapes or MT cartridges are also processed in the same way.
When copying saved data, requests for tapes and MT cartridges are handled as described above.
Files that are saved or restored and save files may not be reserved using the /SECURE-RESOURCE-ALLOCATION
command.
When using HSMS, the devices cannot be reserved, since the reservation cannot be passed to the HSMS server task. The reserved devices would then not be available to an ARCHIVE task.