Show TOC

Implicitly Interrupting an Archiving SessionLocate this document in the navigation structure

Prerequisites

  • 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.

Context

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.

Procedure


  1. Start the archiving session as usual.

  2. 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.

  3. 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.

  4. The ADK sets status of the archiving session to Incomplete as usual, but also marks it as Interrupted.

Results

The archiving session was interrupted and can be continued later. To continue an interrupted archiving session, see Continuing an Interrupted Archiving Session.