Previous Topic: Approve Package SyntaxNext Topic: Archive Package Syntax


The Archive Package Action

The ARCHIVE PACKAGE action offloads a package definition to an external data set. The ARCHIVE PACKAGE action can, optionally, delete the package after it is successfully written to the external data set. The ARCHIVE PACKAGE action archives the current version of a package. For promotion packages, the current version and all historical versions are archived.

You can use the ARCHIVE action against a package that has a status of Executed or against a package that has a status of Committed. If the status is Executed, you cannot use the ARCHIVE action with the delete option against any package that has backout members.

Note: When you archive a package to a partitioned data set (PDS), you can generate reports only from individual members of the data set and not the complete data set. For more information, see the Reports Guide.