Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
LABEL | Input controls | Element list | Optional |
Element 1: File label | Character value, *SAME, *ANY, *NONE | ||
Element 2: Select version | 1-999, *SAME, *CURRENT | ||
ALWCNV | Allow conversion | *SAME, *NO, *YES | Optional |
MEDCLS | Media class | Character value, *SAME, *NONE | Optional |
MOVPCY | Move policy | Name, *SAME, *NONE | Optional |
VOLSEC | Secure volume | *SAME, *NO, *YES | Optional |
RET | Retention | Element list | Optional |
Element 1: Retention type | *SAME, *DATE, *DAYS, *NONE, *PERM, *VERSION | ||
Element 2: Retain media | Character value, *SAME | ||
FILEGRP | File group | Name, *SAME, *NONE, *ARCGRP, *BKUGRP, *SYSGRP, *SYSTEM | Optional |
GRPTYPE | File group type | Name, *SAME, *ARC, *BKU, *NONE | Optional |
MARKDUP | Mark volumes for duplication | *SAME, *NO, *YES | Optional |
MARKHST | Mark history for duplication | *SAME, *NO, *YES | Optional |
TEXT | Text | Character value, *SAME, *NONE | Optional |
Top |
Specifies the file label and version selection controls enforced for your job on subsequent input operations involving media. These controls remain in effect for your job until they are reset or otherwise changed by another SETMEDBRM command.
Element 1: File label
Element 2: Select version
In addition to the file label, you can specify which version of the file to use. BRMS uses the file label and version specified here along with its inventory of media content to determine which volume should be mounted. If the volume is not found, a message is issued to indicate this.
Top |
Specifies whether conversion controls are enforced for your job on subsequent input operations involving media. These controls remain in effect for your job until they are reset or otherwise changed by another SETMEDBRM command.
Top |
Specifies the type of media to be used when output operations require media. The media class that you specify here is used by BRMS to control subsequent mount operations. These controls remain in effect for your job until they are reset or otherwise changed by another SETMEDBRM command.
Top |
You can specify which move policy should be used for media once it has been written on by your job. This value remains in effect for your job until it is reset or otherwise changed by another SETMEDBRM command.
Top |
Specifies whether the volume is secured against subsequent read operations. Volumes that are secured can only be read by users with the special authorities *ALLOBJ or *SAVSYS. This value remains in effect for your job until it is reset or otherwise changed by another SETMEDBRM command.
Top |
Specifies the type of retention that you want to use for this volume. Certain Retention type specifications require additional Retain media detail. The Retention type parameter specifies the type of retention and the Retain media parameter specifies a number or a date as appropriate with the specified Retention type. For instance, if Retention type is specified as *VERSION and Retain media is 4, then 4 versions of the information on the media will be managed by BRMS.
Element 1: Retention type
Note: If you specify *PERM, Retain media specifications are is ignored.
Element 2: Retain media
Top |
Specifies the file group that you want to use with the current SETMEDBRM command.
Note: The BRMS Advanced feature (Option 2) is required to use this value.
Top |
Specifies the type of file group to which the data being written belongs.
Note: *ARC is not a special value, but rather indicates that this is an archive file group type.
Note: The BRMS Advanced feature (Option 2) is required to use this value.
Note: *BKU is not a special value, but rather indicates that this is a backup file group type.
Top |
Specifies whether to mark the volumes for duplication after they have been duplicated.
Top |
Specifies whether to mark the history items for duplication after they have been duplicated.
Top |
Specifies the text that briefly describes the data being written. This text can be displayed in the BRMS media inventory.
Top |
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.
Top |
*ESCAPE Messages
Top |