Canceling an import operation

If needed, the LIBRARY IMPORT,volser,CANCEL command or the CBRXLCS external services programming interface FUNC=IMPORT with the cancel option can be used to cancel an executing import operation to expedite other work or to quiesce library activity in preparation for maintenance. A cancel from the host is normally effective immediately, except for the period of time when host insert processing is occurring for logical volumes that are being imported from a stacked volume. In this case, the host cancel takes effect after host insert processing is completed. The host cancellation method is the preferred method for canceling an import operation. However, in addition to the host cancellation methods, an import operation can also be explicitly canceled at the library manager, if there is no host available to cancel the import operation. Differences in the cancel methods will occur during host insert processing. If the explicit cancel occurs during host insert processing, the import operation terminates and logical volumes that are still assigned to the insert category are left in the insert category to be processed by the host when it is available.

The status of all logical volumes requested for import is found in the status file of the import list volume after the import operation completion. Exported stacked volumes that were provided for import and were completed before the cancel are not affected by the cancel.