Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Duplicate Media using BRM (DUPMEDBRM) command copies the contents of a single volume, a single volume in a media set, media set, or set of marked saved items to other volumes. You can specify the volumes which are to be duplicated, or specify a search be performed to identify the volumes or saved items which are to be duplicated. You can also resume a previous duplication operation which ended with errors.
Note: The tape devices do not have to support the same media classes. The media policy is specified in the DUPMEDBRM command.
Note: The density field in the file header labels are changed to reflect the true density.
Note: If you are using DUPMEDBRM to copy a file group, the output media assumes the group number of the input media. An exception to this is if a Set Media Controls using BRM (SETMEDBRM) command overrides the value for file group and type for the output volumes.
To use this command, you must have the Backup Recovery and Media Services for iSeries, 5722-BR1, licensed program installed.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
VOL | From volume identifier | Character value, *LIST, *RESUME, *SCHHST, *SEARCH | Required, Key, Positional 1 |
RSMKEY | Resume key | 1-999999, *ALL | Optional |
FILEGRP | File group | Name, *ALL, *NONE, *ARCGRP, *BKUGRP, *SYSGRP, *SYSTEM | Optional, Positional 2 |
GRPTYPE | File group type | Name, *ALL, *ARC, *BKU | Optional, Positional 3 |
SCHMEDCLS | From media class | Name, *ALL | Optional |
FROMDEV | From device | Name | Optional |
TODEV | To device | Name | Optional |
FROMSEQNBR | From sequence number | Single values: *ALL Other values: Element list |
Optional |
Element 1: Starting file sequence number | 1-16777215, *FIRST | ||
Element 2: Ending file sequence number | 1-16777215, *LAST, *ONLY | ||
TOSEQNBR | To sequence number | 1, *END | Optional |
MEDPCY | To media policy | Name, *SYSPCY, *NONE | Optional |
FROMVOL | Input volume list | Single values: *VOL, *SET Other values (up to 300 repetitions): Character value |
Optional |
FROMENDOPT | From device end option | *REWIND, *LEAVE, *UNLOAD | Optional |
TOENDOPT | To device end option | *UNLOAD, *LEAVE, *REWIND | Optional |
FROMSYS | From system | Character value, *LCL | Optional |
TOVOL | To volume identifier | Single values: *MOUNTED Other values (up to 300 repetitions): Character value |
Optional |
OBJDTL | Retain object detail | *NO, *YES | Optional |
EXPDATE | Expiration date | Date, *MEDPCY, *PERM | Optional |
MOVPCY | Move policy | Name, *MEDPCY, *NONE | Optional |
MEDCLS | Media class | Character value, *MEDPCY, *SYSPCY | Optional |
LOC | Location | Name, *MEDPCY, *ANY, *HOME | Optional |
VOLSEC | Secure volume | *MEDPCY, *NO, *YES | Optional |
MINVOL | Required volumes | 1-9999, *MEDPCY, *NONE | Optional |
MARKDUP | Mark volumes for duplication | *MEDPCY, *NO, *YES | Optional |
MARKHST | Mark history for duplication | *MEDPCY, *NO, *YES | Optional |
SAVMEDINF | Save media information | *NONE, *BKUPCY, *LIB, *OBJ | Optional |
Top |
Specifies the volumes to be duplicated or the type of search used to identify volumes or saved items to be duplicated.
This parameter can be used in conjunction with the Input volume list (FROMVOL) parameter to specify the volume or volumes that you want to copy. You can copy a single volume, volumes in a media set, a list of volumes or all volumes marked for duplication. If you want to copy a single volume or a single volume in a media set, specify the name of the volume that you want to copy in the VOL parameter and the special value *VOL in the FROMVOL parameter.
Note: If you are prompting the command, use F9 to display all command parameters before you specify a volume in the VOL parameter. The prompter will set the default value in the FROMVOL parameter to *VOL.
For instance, if you are copying a volume T00009, which is not a member of a media set, you would prompt the command, press F9, then enter T00009 in the VOL parameter. The *VOL should be the default value displayed in the FROMVOL parameter.
If the volume is a member of a media set you would follow the same procedure.
If you are not sure if a volume is a member of a media set, enter the volume in the VOL parameter and press the Enter key. If the volume is a member of a media set, the volume identifiers of all volumes in the set will be displayed in the FROMVOL parameter.
For instance, if you had a media set made up of T00001, T00002 and T00003 and you can enter T00002 in the VOL parameter and pressed the enter key. Volumes T00001, T00002 and T00003 would be displayed in the FROMVOL parameter. The volumes in the FROMVOL parameter cannot be changed at this point. This helps assure that you are duplicating all members of the set.
An alternate method of copying a media set is to specify a volume contained in the media set in the VOL parameter and using the special value *SET for the FROMVOL parameter.
You can specify *LIST in the VOL parameter to copy a list of volumes that you specify in the FROMVOL parameter.
You can specify *SEARCH in the VOL parameter to search the media inventory for the marked volumes that are to be duplicated, or *SCHHST to search the history information for marked saved items to be duplicated. When using *SEARCH or *SCHHST the FROMVOL parameter is not used.
This is a required parameter.
Note: You must correct any errors which caused the duplication operation to end before you resume the duplication operation.
Top |
Specifies the previous duplication operation to resume. You may want to resume a previous duplication if the operation ended with errors.
A resume key is returned in the recovery text of diagnostic message BRM4137 for duplication operations which end with errors.
A resume key for pending duplication of saved items is also displayed on the Duplication view of the Work with Media Information display. Use the Work with Media Information (WRKMEDIBRM) command to display the saved items, then use F11 to select the Duplication view.
Note: This parameter is required when *RESUME is specified for the Volume (VOL) parameter.
Top |
Specifies the file group that you want search for and duplicate the volumes that contain the specified file group.
Note: The BRMS Advanced feature (Option 2) is required to use this value.
Top |
Specifies the type of file group that you want to search for and duplicate the volumes that contain the specified file group type.
Note: The BRMS Advanced feature (Option 2) is required to use this value.
Top |
Specifies the media classes that you want to search for and duplicate the input volumes that are associated with the specified media class.
This parameter is only used in conjunction with the From volume identifier (VOL) parameter when the special value *SEARCH is specified.
Top |
Specifies the device name from which the volume or volumes is copied.
This is a required parameter.
Top |
Specifies the device name on which you are placing the volume that you want to copy to.
This is a required parameter.
Top |
Specifies which data file sequence numbers are to be copied.
Note: If *ALL is specified for Starting file sequence number, or *FIRST for Starting file sequence number and *LAST for Ending file sequence number, then file sequences prior to *FIRST or after *LAST which do not reside in the history information for the volumes will not be duplicated.
Single values
Element 1: Starting file sequence number
Element 2: Ending file sequence number
Top |
Specifies which sequence number the data files are to be copied to.
Top |
Specifies the media policy for the volumes to which you are copying.
Media policies are used to determine:
The media policy you specify must be a media policy that is in the BRMS media policy table.
Top |
Specifies the list of volumes that are to be copied. This parameter works in conjunction with the From volume identifier (VOL) parameter to specify the volume or volumes that you want to copy. You can copy a single volume, a set of volumes or a list of volumes. You can specify up to 300 volumes in the FROMVOL parameter.
To copy a single volume, specify a volume in the VOL parameter and specify the special value *VOL in the FROMVOL parameter.
Note: If you are prompting the command, use F9 to display all command parameters before you specify a volume in the VOL parameter. The prompter will set the default value in the FROMVOL parameter to *VOL.
If you are not sure if a volume is a member of a media set, enter the volume identifier in the VOL parameter and press the Enter key. If the volume is a member of a media set, the volume identifiers of all volumes in the set will be displayed in the FROMVOL parameter.
If you specify *LIST in the VOL parameter, you can enter a list of volumes to copy in the FROMVOL parameter.
If you specify *SEARCH in the VOL parameter, this parameter is not used.
If you want to duplicate the volumes in a media set, specify a volume of the media set in the VOL parameter and specify *SET in the FROMVOL parameter. You must use this method to duplicate the volumes of a media set in a batch job.
Single values
Other values (up to 300 repetitions)
Top |
Specifies whether the volume placed on the device specified on the From device (FROMDEV) parameter is rewound and unloaded after the operation completes.
Top |
Specifies whether the volume placed on the device specified on the To device (TODEV) parameter is rewound and unloaded after the operation is completed.
Top |
Specifies the location and network identification of the system that owns the volumes you would like to duplicate. When specifying a remote system, the input and output volumes used in the operation will be owned by the specified system.
Note: Use the Display Network Attributes (DSPNETA) command to view the system network attributes.
Note: The BRMS Network feature (Option 1) is required to use this value if a value other than *LCL is specified.
Top |
Specifies the volume identifiers of the volumes to which data is being copied.
The volume identifier that you specify must be a volume that is in the BRMS media inventory.
Single values
Other values (up to 300 repetitions)
Top |
This parameter has no function. Object detail, including member level detail for physical files, is always retained for duplicated media as long as object detail was available for the input volumes.
Top |
Specifies the expiration that you want to use for output volumes created as a result of this duplication operation.
Note: If *NONE is specified in the Media policy (MEDPCY) parameter, you cannot specify *MEDPCY in this parameter.
Top |
Specifies the move policy that you want to use for output volumes created as a result of this duplication operation.
Note: If *NONE is specified in the Media policy (MEDPCY) parameter, you cannot specify *MEDPCY in this parameter.
Top |
Specifies the media class that you want to use for output volumes created as a result of this duplication operation.
Note: If *NONE is specified in the Media policy (MEDPCY) parameter, you cannot specify *MEDPCY in this parameter.
Top |
Specifies the location that you want to use for output volumes created as a result of this duplication operation.
Note: If *NONE is specified in the Media policy (MEDPCY) parameter, you cannot specify *MEDPCY in this parameter.
Top |
Specifies whether you want to apply volume security to volumes in this media class. Volumes that are secured can only be read by users with the special authorities *ALLOBJ or *SAVSYS.
Note: If *NONE is specified in the Media policy (MEDPCY) parameter, you cannot specify *MEDPCY in this parameter.
Top |
Specifies the minimum number of expired volumes that must be present before any duplication can be done using this media policy. The value can also be checked by user jobs using the Check Expired Media for BRM (CHKEXPBRM) command.
Note: If *NONE is specified in the Media policy (MEDPCY) parameter, you cannot specify *MEDPCY in this parameter.
Top |
Specifies whether to mark volumes for duplication after they have been duplicated.
Note: If *NONE is specified in the Media policy (MEDPCY) parameter, you cannot specify *MEDPCY in this parameter.
Top |
Specifies whether to mark history items for duplication after they have been duplicated.
Note: If *NONE is specified in the Media policy (MEDPCY) parameter, you cannot specify *MEDPCY in this parameter.
Top |
Specifies whether you want to automatically save the media information after duplication has run. The media information is the changes to the save history and volume information that occur during the duplication operation. You can specify whether the save history in the media information is saved at the library or object level.
Note: Object level saved history information can only be saved if object level or member level detail was retained when the objects were originally saved.
Note: The saved media information will be appended to the last output volume used for duplication.
Top |
Example 1: Copying a Single Volume
DUPMEDBRM VOL(T00001) FROMDEV(TAP01) TODEV(TAP03) FROMVOL(T00001)
This command duplicates volume T00001 using TAP01 as the from device and TAP03 as the to device. Because T00001 is not a member of a media set, the input list (FROMVOL) contains only T00001.
Example 2: Duplicating a List of Volumes
DUPMEDBRM VOL(*LIST) FROMDEV(TAPMLB01) TODEV(TAPMLB02) MEDPCY(FMT3570) FROMVOL(VOL001 VOL002 VOL003)
This command duplicates volumes VOL001, VOL002 and VOL003 using media library TAPMLB01 as the from device and media library TAPMLB02 as the to device using the media class in the FMT3570 media policy for the to volumes.
Example 3: Duplicating a Volume Set
DUPMEDBRM VOL(VOL002) FROMDEV(TAPMLB01) TODEV(TAPMLB02) FROMVOL(*SET) MEDPCY(FMT3570)
This command duplicates all volumes in the volume set which contains VOL002 using media library TAPMLB01 as the from device and media library TAPMLB02 as the to device using the media class in the FMT3570 media policy for the to volumes.
Example 4: Duplicating All Marked Volumes for Another System
DUPMEDBRM VOL(*SEARCH) FROMDEV(TAPMLB01) TODEV(TAPMLB02) FROMSYS(SYSTEM_B)
If this command is run on SYSTEM_A, the command will search for all volumes marked for duplication owned by SYSTEM_B using media library TAPMLB01 as the from device and media library TAPMLB02 as the to device. SYSTEM_A and SYSTEM_B are in a BRMS network and share the media library resources.
Example 5: Resume a Previous Duplicate Media using BRM
DUPMEDBRM VOL(*RESUME) RSMKEY(123456)
This command resume a previous duplication operation which ended abnormally. The resume key 123456 was returned in message BRM4137 when the duplication operation ended with exception BRM4138.
Top |
*ESCAPE Messages
Top |