CL Command Reference - STREXPBRM
CL Command List > STREXPBRM Reference
Description:
The Start Media Expiration Processing for BRM (STREXPBRM) command expires media that is in the BRMS media content information database. When media is expired it can be reused in save processing. Volumes are expired when the expiration date or number of days are exceeded or when the volume has been reused. Volumes that are expired are marked with *YES in the Expired field on the Work with Media display. The STREXPBRM command can be scheduled to run periodically or can be processed as part of the STRMNTBRM command. The Media Expiration report can be produced by specifying *REPORT in the Active file action (ACTION) parameter. The report, if printed, is written to the printer file QP1AEP.
To use this command, you must have the Backup Recovery and Media Services for iSeries, 5722-BR1, licensed program installed.
Examples:
Example 1: Expiring Volumes Under Version Control
STREXPBRM ACTFILCNT(2) ACTION(*EXPMED) ACTFILRET(*VERSION)
This command starts expiration processing for any volume that has 2 or less active files on it and whose media expiration is controlled using version control.
Example 2: Expiring Volumes in a Set
STREXPBRM ACTION(*EXPMED) EXPSETMED(*YES)
This command starts expiration processing for expiring volumes contained in a set if there are no active files on the volumes.