Previous Topic: EXITCODE Statement—Identify Success or Failure by Exit CodeNext Topic: FAILUREMSG Statement—Specify Failure Message for ABAP


EXPIRATION Statement—Specify the Number of Days Before the Spool Request is Deleted

The EXPIRATION statement specifies the number of days before the spool request is deleted.

Supported Job Types

This statement is optional for the following job types:

Syntax

This statement has the following format:

EXPIRATION days
days

Specifies the number of days before the spool request is deleted. The value corresponds to the SAPGUI Spool options, Spool retention per field on the Background Print Parameters dialog.

Limits: 1-9

Note: If you specify 9 days, the spool request is not deleted.

Notes:

Example: Delete Spool Request After Three Days

This example deletes the spool request for the BTCTEST ABAP from the spool system after three days:

SAPJOBNAME SAPTEST
AGENT SAPHTAGENT
SAPUSER J01PROD
ABAPNAME BTCTEST
   VARIANT TEST
   EXPIRATION 3