Q
Manage Learn to apply best practices and optimize your operations.

How to clear expired BRMS created *SAVF files from System i

Use the STRMNTBRM command to expire a *SAVF on the day it is scheduled to be expired and delete an expired *SAVF if it has already been saved to tape via the SAVSAVFBRM command. If an expired *SAVF will never be saved to tape, delete it by running the SAVSAVFBRM command and specifying the name of the control group that created it.

I would like to know how to clear the system of expired *SAVF. You have mentioned that when the SAVSAVFBRM CTLGRP (my_control_group) command is executed, it will clear all expired *SAVF. However, does this mean that expired *SAVF will exist forever in WRKSAVFBRM if there is not another backup execution of the SAVSAVBRM command (e.g yearly backup done once a year)?
The retention and deletion of BRMS created *SAVF's is a multi-step process.

The retention date is determined by values specified in the Media Policy.

When the STRMNTBRM EXPMED(*YES) command is run, a *SAVF expires when the retention date calculated by the settings in the Media Policy arrives.

You can review the retention dates for BRMS created *SAVF's, immediately expire it and even delete it from the system using the WRKSAVFBRM command.

The STRMNTBRM command will not only expire a *SAVF, it will also delete an expired *SAVF if it has been saved to a tape using the SAVSAVFBRM command.

If a *SAVF is not saved to tape, it can be deleted by the SAVSAVFBRM command after it has been expired by the STRMNTBRM command.

The SAVSAVFBRM command processes *SAVF files based on the control group they were created in, so if you're not planning on saving a the *SAVF's from a particular Control Group to a tape, make sure that the last entry in the control group is a SAVSAVFBRM command. For example:

In the example above, any expired *SAVF created by Control Group CASHEDITS will be removed from the system when the SAVSAVFBRM CTLGRP(CASHEDITS) command runs.

So, in summary...

  1. A *SAVF can be created by running a CONTROL GROUP.
  2. The *SAVF's expiration date is calculated by the settings in the Media Policy associated with the Control Group.
  3. The STRMNTBRM command will expire a *SAVF on the day is is scheduled to be expired.
  4. The STRMNTBRM command will also delete an expired *SAVF if it has already been saved to tape via the SAVSAVFBRM command.
  5. If an expired *SAVF is never going to be saved to tape, it can be deleted by running the SAVSAVFBRM command and specifying the name of the Control Group that created it.

Dig Deeper on Data backup, storage and retrieval on iSeries

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close