Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Add Media Library Media to BRM (ADDMLMBRM) command allows you to add volumes to a media library (MLB). The command adds the specified media volumes to a usable category and optionally enrolls them to BRMS. If the Add volume to BRM (ADDVOL) parameter is *YES, you can specify a media class for the volume or volumes that you are adding. If the Add volume to BRM (ADDVOL) parameter and the Initialize tape (INZ) parameter are both *YES, you are supplied with additional parameters such as move policy and initialization information.
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 |
---|---|---|---|
MLB | Media library | Name | Required, Positional 1 |
VOL | Volume identifier | Single values: *INSERT Other values (up to 300 repetitions): Character value |
Optional, Positional 2 |
ADDVOL | Add volume to BRM | *YES, *NO | Optional |
INZ | Initialize tape | *NO, *YES | Optional |
MEDCLS | Media class | Name | Optional |
MOVDATE | Last moved date | Character value, *NONE | Optional |
MOVPCY | Move policy | Name, *NONE | Optional |
EXPDATE | Expiration date | Character value, *NONE, *PERM | Optional |
DEV | Device | Name, *MLB | Optional |
NEWOWNID | New owner identifier | Character value, *BLANK | Optional |
CHECK | Check for active files | *YES, *FIRST, *NO | Optional |
CODE | Code | *EBCDIC, *ASCII | Optional |
CLEAR | Clear | *NO, *YES | Optional |
Top |
Specifies the name of the media library to which you are adding media. The MLB must be one that BRMS lists on its Work with Media Libraries display.
Top |
Specifies the volume identifier of the media being added to the BRMS media inventory.
This is a required parameter.
Single values
Other values (up to 300 repetitions)
Top |
Specifies whether you want to add the volumes specified in the Volume identifier (VOL) parameter to the BRMS media inventory.
Top |
Specifies whether you want to initialize the volumes specified in the Volume identifier (VOL) parameter. This parameter is ignored if ADDVOL=*NO.
Top |
Specifies the name of a media class for the volume you are adding. Media classes can be reviewed in the Work with Media Classes display.
The media class is also used to determine the category for volumes that are being added to the media library. If the Shared media attribute in the media class is *NO, the category is changed from *INSERT to *NOSHARE, otherwise the category is changed to *SHARE400.
This is a required parameter if ADDVOL=*YES. This parameter is ignored if ADDVOL=*NO.
This is a required parameter if you are adding a volume.
Top |
Specifies the date of the last time this media volume was moved prior to being added to the media inventory.
This parameter is ignored if ADDVOL=*NO.
Top |
Specifies the user-defined name of a move policy that you want to use for this volume.
This parameter is ignored if ADDVOL=*NO.
Top |
Specifies the expiration date of the volume that is added to the media inventory. If a date is specified, the file is protected and cannot be overwritten until the expiration date.
This parameter is ignored if ADDVOL=*NO.
Top |
Specifies the name of the device that you want to use to initialize the specified volumes. The location of the device and the location of the MLB specified in the Media library (MLB) parameter must be the same.
This parameter is ignored if ADDVOL=*NO.
Top |
Specifies the volume owner's identifier to write in the volume label of the volume being written.
Note: This parameter is ignored if ADDVOL=*NO.
Top |
Specifies whether a labeled volume should be checked for active data files before it is initialized for use. If an unlabeled volume is placed in the specified device, this parameter is ignored.
This parameter is ignored if ADDVOL=*NO.
Top |
Specifies the character code in which the volume label is written. All data that is not save/restore data written after the label must be in the same code; codes cannot be intermixed on a volume that is not a save/restore volume.
This parameter is ignored if ADDVOL=*NO.
Top |
Specifies whether all labels and data are to be deleted from the volume when it is initialized for use. If the volume must be cleared of all data, it is deleted from the location of the volume label or tape marks to the end of the tape marker.
This parameter is ignored if ADDVOL=*NO.
Top |
Example 1: Adding a Volume to a Media Library
ADDMLMBRM MLB(MLB01) VOL(T00001) INZ(*NO) ADDVOL(*NO)
This command adds volume T00001 to the media library MLB01, but the volume is not initialized. Volume T00001 must be a member of the BRMS media inventory.
Example 2: Adding and Initializing a Volume to BRMS
ADDMLMBRM MLB(MLB01) VOL(*INSERT) INZ(*YES) MEDCLS(CART3490E)
This command adds all volumes that are in the *INSERT category to the media library MLB01, and adds the volumes to the BRMS media inventory as media of class CART3490E. The volumes are initialized with the density specified in media class CART3490E.
Top |
*ESCAPE Messages
Top |