BRMS - EXTMEDIBRM

By kimot, 29 January, 2024

Command EXTMEDIBRM will allow you to add media content into BRMS. This is useful if you have a tape that was created on another system or the information about it was accidentally deleted in BRMS.

The basic usage looks like this

EXTMEDIBRM DEV(TAP01) FILE(*SAVLIB)

You can of course specify more details

                    Extract Media Information (EXTMEDIBRM)                
                                                                          
Type choices, press Enter.                                                
                                                                          
Device . . . . . . . . . . . . . >               Name                     
Volume identifier  . . . . . . .   *MOUNTED      Character value, *MOUNTED
File origin  . . . . . . . . . .   *FILE         *FILE, *SAV, *SAVCFG...  
End of media option  . . . . . .   *UNLOAD       *UNLOAD, *LEAVE, *REWIND 

Tape volume must be enlisted in BRMS but BRMS shouldn't have any information about content or you will get message BRM1392. 

Message ID . . . . . . . . . :   BRM1392
Message file . . . . . . . . :   Q1AMSGF
  Library  . . . . . . . . . :     QBRM

Message . . . . :   Unable to use volume &1. (C R)
Cause . . . . . :   Volume &1 is not available for use as scratch media. Processing of control group &2 type &3 is interrupted.
Recovery  . . . :   Do one of the following:
    -- Type C to cancel the operation.
    -- Pick a different volume, then type R to try the operation again.

If command runs correctly you will get message Adding contents for volume AS0182 on the bottom line of the screen.

You have to take into account that the program is not able to get all the information from the tape, such as the number of stored objects.

5770BR1 V7R4M0 190422            Media Information Report                 
Saved       Save     Item     Save     Save     Expire  Objects    Not    
Item        Type     Type     Date     Time      Date    Saved    Saved   
*SAVSYS     *FILE           17/06/22 13:56:48 *PERM           0        0  
*LABEL      *FILE           17/06/22 13:57:33 *PERM           0        0  
QFILESCR    *FILE           17/06/22 13:57:33 *PERM           0        0  
QFILELDS    *FILE           17/06/22 13:57:34 *PERM           0        0  
QFILEMCD    *FILE           17/06/22 13:57:34 *PERM           0        0  
QIAM400     *FILE           17/06/22 13:57:34 *PERM           0        0  
*LABEL      *FILE           17/06/22 13:57:35 *PERM           0        0  
*LABEL      *FILE           17/06/22 13:57:35 *PERM           0        0  
QFILEBT     *FILE           17/06/22 13:57:35 *PERM           0        0  
QFILEIN     *FILE           17/06/22 13:57:35 *PERM           0        0  
QFILEIPL    *FILE           17/06/22 13:57:35 *PERM           0        0  
*LABEL      *FILE           17/06/22 13:57:36 *PERM           0        0  
*LABEL      *FILE           17/06/22 13:57:36 *PERM           0        0  
*LABEL      *FILE           17/06/22 13:57:36 *PERM           0        0  
*LABEL      *FILE           17/06/22 13:57:36 *PERM           0        0  
*LABEL      *FILE           17/06/22 13:57:36 *PERM           0        0