Implicitly Interrupting an Archiving Session
When scheduling an archiving session, you realize that the time slot available or the amount of storage space is not sufficient. However, you want to start the archiving session, interrupt it, and continue it later.
The archiving object supports interruption.
In Cross-Archiving Object Customizing
, you have specified the runtime in hours or the storage space in MB, or both.
Start the archiving session as usual.
For each data object that function module ARCHIVE_SAVE_OBJECT writes, the ADK determines whether it is necessary to interrupt the archiving session.
ADK calculates the following:
a. The time that has elapsed since the write job was released.
b. The storage space, by adding the size of already closed archive files to the size of the archive file that is currently being written.
As soon as one of these values is reached, the ADK triggers the interruption by raising the exception TERMINATED_REQUESTED.
Note
The write program must be able to process the exception and call function module ARCHIVE_CLOSE_FILE.
The ADK sets status of the archiving session to Incomplete
as usual, but also marks it as Interrupted
.
The archiving session was interrupted and can be continued later. To continue an interrupted archiving session, see Continuing an Interrupted Archiving Session.