CL Command Reference - SETMEDBRM
CL Command List > SETMEDBRM Reference
Description:
The Set Media Controls using BRM (SETMEDBRM) command has two distinct parts, a set of input controls and a set of output controls.
Input controls pertain only to volumes from which data is being retrieved or read.
Output controls start with the Media class (MEDCLS) parameter continue through the Text (TEXT) parameter, and pertain to volumes on which data is being written. For example, if you plan to perform a CPYTOTAP operation, you can use the SETMEDBRM command beforehand to assign a move policy and retention period for the volumes that are used.
The controls you specify with SETMEDBRM remain in effect for your job until they are reset or otherwise changed by another SETMEDBRM command. To see control values that are currently in effect, type the SETMEDBRM command on a command line and press F4.
To use this command, you must have the Backup Recovery and Media Services for iSeries, 5722-BR1, licensed program installed.
Examples:
Example 1: Using Input Controls
SETMEDBRM LABEL(*ANY 1) ALWCNV(*YES)
This command sets the input controls so that any file with a version number 1 greater than the most current version is read. If ASCII data is found, convert it to EBCDIC.
Example 2: Using Output Controls
SETMEDBRM MEDCLS(QIC1000) MOVPCY(OFFSITE) RET(*DATE กฏ3/3/03กฏ)
This command sets the output controls so that output operations will use media class QIC1000, a move policy of OFFSITE and a retention date of 3/3/2003 will be assigned to any volumes produced while these output controls are in effect.