Change Media using BRM (CHGMEDBRM)
The Change Media using BRM (CHGMEDBRM) command changes an attribute or several attributes of a media volume in the BRMS media inventory.
To use this command, you must have the Backup Recovery and Media Services for iSeries, 5722-BR1, licensed program installed.
Restrictions:
- Consideration should be given to changing the authority to the CHGMEDBRM command from PUBLIC(*CHANGE) to a more restrictive authority to assure that changes are not made to media without proper authorization.
- These following restrictions apply for changing virtual tape volumes.
- The density of the virtual volume (image catalog entry) must be the same as the density of the media class.
- Virtual tape media must reside in storage on the current system.
Keyword |
Description |
Choices |
Notes |
VOL |
Volume identifier |
Character value |
Required, Key, Positional 1 |
MEDCLS |
Media class |
Name, *SAME |
Optional |
EXPDATE |
Expiration date |
Character value, *SAME, *NONE, *PERM |
Optional |
MOVDATE |
Last moved date |
Date, *SAME, *NONE |
Optional |
MOVPCY |
Move policy |
Name, *SAME, *NONE |
Optional |
CRTDATE |
Creation date |
Date, *SAME |
Optional |
VOLSEC |
Secure volume |
*SAME, *NO, *YES |
Optional |
SLOT |
Slot number |
1-999999, *SAME, *NONE |
Optional |
SYSNAME |
System |
Name, *SAME, *LCL |
Optional |
TEXT |
Text |
Character value, *SAME, *NONE |
Optional |
IMGCLG |
Image catalog |
Name, *SAME, *NONE |
Optional |
Volume identifier (VOL)
Specifies the volume identifier of the volume being changed in the BRMS media inventory.
This is a required parameter.
- volume-identifier
- Specify the identifier of the volume being changed in the media inventory. The volume identifier is a maximum of six characters in length.
Note: Valid characters for the volume identifier are 0 - 9 and A - Z.
Media class (MEDCLS)
Specifies the user-defined name of a media class for the volume you are changing. Media classes can be reviewed in the Work with Media Classes display.
- *SAME
- Use the same value as is currently assigned to the parameter.
- media-class
- Specify the media class to which you want to change.
Expiration date (EXPDATE)
Specifies the expiration date of the media volume that is changed in the media inventory. If a date is specified, the file is protected and cannot be overwritten until the expiration date.
Changing the expiration date of a volume will change the expiration date for all entries that contain data on that volume. If the data for an entry spans multiple volumes, the expiration date for those volumes may also change. The other volumes expiration dates will change only if the changed date is further in the future or the changed entry is the only entry having data on that volume.
- *SAME
- The expiration date currently assigned to the media is not changed.
- *NONE
- The media is expired media and can be used in backup or archive processing.
- *PERM
- The media has a permanent retention and cannot be used in backup or archive processing.
- expiration-date
- Specify the date when protection for the media ends.
Last moved date (MOVDATE)
Specifies the last date that this media volume was moved.
- *SAME
- You are not going to change the last moved date currently assigned to the volume.
- *NONE
- You are not assigning a last moved date for this media volume.
- last-moved-date
- Specify the date that this volume was last moved.
Move policy (MOVPCY)
The user-defined name of a move policy that you want change for this volume.
Note: Virtual media cannot be moved. Move policies are assigned to virtual volumes so the policy can be replicated to the output media when the virtual volume is duplicated.
- *SAME
- You want to use the same move policy as is currently assigned to the volume.
- *NONE
- You are not assigning this volume a move policy.
- move-policy-name
- Specify the user-defined name of the move policy that you are assigning to this media volume.
Creation date (CRTDATE)
Specifies the date that this volume had data written on it.
- *SAME
- You are not going to change the creation date currently assigned to the volume.
- creation-date
- Specify the date that this volume had data written on it.
Secure volume (VOLSEC)
Specifies whether you want to change who has access to this volume.
- *SAME
- You are not going to change the accessibility of the volume.
- *NO
- This volume is not secured.
- *YES
- This volume is secured. Only users with special authorities *ALLOBJ or *SAVSYS can read this volume.
Slot number (SLOT)
Specifies the slot number for the volume that you have selected to change.
- *SAME
- You are not going to change the slot number currently assigned to the volume.
- *NONE
- No slot number is assigned to the volume that you are changing.
- slot-number
- Specify the slot number that you are assigning to this volume. Slot numbers can range from 1 to 999999.
System (SYSNAME)
Specifies the system identifier for the volume that you have selected to change.
- *SAME
- You are not going to change the system identifier currently assigned to the volume.
- *LCL
- Specifies that the system is the local system. BRMS uses the default local location name, LCLLOCNAME and not the system name SYSNAME. In most cases, the systems have the same value specified in the LCLLOCNAME and in the SYSNAME. You can use the DSPNETA command to view the system network attributes.
- location-name
- Specify the name of the remote location associated with the system. The local system's network identifier, as seen by using the DSPNETA command, is used as the system's network identifier.
Note: The BRMS Network feature (Option 1) is required to use this value.
- network-id.location-name
- Specify the network identifier and the name of the remote location associated with the system. Specify these values using the format nnnnnnnn.cccccccc where nnnnnnnn is the network identifier and cccccccc is the remote location name.
Note: The BRMS Network feature (Option 1) is required to use this value.
Text (TEXT)
Specifies text to describe the media that you are changing.
- *SAME
- You are not going to change the text that describes the volume.
- *NONE
- No text is specified to describe this volume.
- text
- Specify text that describes the volume.
Image catalog (IMGCLG)
Specifies the image catalog name for the tape volume which is being changed. If an image catalog name is specified, the image catalog and image catalog entry for the volume must exist to use the volume.
Note: Use GO CMDCLG and GO CMDCLGE to view the menus for commands used to manage image catalogs and image catalog entries.
- *SAME
- Use the same value as is currently assigned to the parameter.
- *NONE
- Specifies this is not a virtual volume.
- image-catalog
- Specifies the name of the image catalog which contains the image catalog entry for a virtual volume.
Example 1: Changing a Volume in BRMS
CHGMEDBRM VOL(T00001) MEDCLS(QIC1000)
EXPDATE(*PERM) MOVDATE('2/12/03')
This command changes the media information for volume T00001. The media class has been changed to QIC1000, the expiration date has been changed to *PERM and the last moved date has been changed to February 12, 2003.
*ESCAPE Messages
- BRM1147
- Volume &1 not found.
- BRM133E
- Image catalog entry does not exist for virtual volume &2.
- BRM133F
- Image catalog does not exist for virtual volume &2.
- BRM1917
- Feature not installed.
- BRM1921
- Feature not licensed.
- BRM4040
- Access denied for user &1.
- BRM40A2
- BRMS product initialization required.
- CPF9800
- All CPF98xx messages could be signaled. xx is from 01 to FF.