BRMS can play a part in the processing as described above such that the tape volume created is controlled and tracked just like any other BRMS enrolled tape volume.
To do this, you must perform two actions:
The first step is as simple as inserting a tape as is done for save purposes. The second step, using SETMEDBRM, allows you to specify media management parameters to be associated with the written tape. You can specify this command as follows:
Set Media Controls using BRM (SETMEDBRM) Type choices, press Enter. Input controls: File label . . . . . . . . . . *SAME Select version . . . . . . . . *SAME 1-999, *SAME, *CURRENT Allow conversion . . . . . . . . *SAME *SAME, *NO, *YES Media class . . . . . . . . . . QIC2GB *NONE, *SAME, AAA, AAAA, AA... Move policy . . . . . . . . . . TAPEFILE *NONE, *SAME, AANANCY, AASL... Secure volume . . . . . . . . . *NO *SAME, *NO, *YES Retention: Retention type . . . . . . . . *VERSION *SAME, *DATE, *DAYS, *NONE... Retain media . . . . . . . . . 3 *SAME, Date, Number File group . . . . . . . . . . . *SAME *SAME, *NONE, *SYSTEM, *BKU... File group type . . . . . . . . *SAME *SAME, *NONE, *BKU, *ARC Mark volumes for duplication . . *NO *SAME, *NO, *YES Mark history for duplication . . *NO *SAME, *NO, *YES Text . . . . . . . . . . . . . . Tape File Example Bottom F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
The SETMEDBRM command for an output (write) operation, as in our example, allows you to set the following media characteristics:
This command works a little like the OVRTAPF command. You do not see any output. It registers the values you enter, and when an application writes to a tape file, these values are applied to the tape operation.
To find the volume used by the operation, run the following command:
WRKMEDBRM MEDCLS(QIC2GB)
When the volumes lists appears on the Work With Media display, locate the volume with the current Creation Date; in this example, TFIL01 was the volume on the tape drive during the processing of the program.
Work With Media System: RCHAS400 Position to . . . . . Starting characters Type options, press Enter. 1=Add 2=Change 4=Remove 5=Display 6=Work with serial set 7=Expire 8=Move 10=Reinitialize ... Volume Creation Expiration Move Media Dup Opt Serial Expired Date Date Location Date Class Sts 5 TFIL01 12/14/05 *VER 003 *HOME *NONE QIC2GB More... Parameters or command: ===> F3=Exit F4=Prompt F5=Refresh F11=Volume system F12=Cancel F17=Top F18=Bottom F23=More options
Use option 5 to see additional media attributes for the volume.
Display Media Attributes Volume serial . . . . . . . . . . : TFIL01 Media type . . . . . . . . . . . : Image catalog . . . . . . . . . . : Media class . . . . . . . . . . . : QIC2GB Expiration date . . . . . . . . . : *VER 003 Previous location . . . . . . . . : *NONE Previous slot number . . . . . . : 0 Current location . . . . . . . . : *HOME Last moved date . . . . . . . . . : *NONE Scheduled location . . . . . . . : *NONE Scheduled move date . . . . . . . : *NONE Container ID . . . . . . . . . . : *NONE Move policy . . . . . . . . . . . : TAPEFILE Creation date . . . . . . . . . . : 12/14/05 Secure volume . . . . . . . . . . : *NO Beginning volume . . . . . . . . : TFIL01 Slot number . . . . . . . . . . . : 21 Press Enter to continue.
The WRKMEDIBRM command also shows that some save operations have occurred, as follows:
Work with Media Information RCHAS400 Position to Date . . . . . Type options, press Enter. 2=Change 4=Remove 5=Display 6=Work with media 7=Restore 9=Work with saved objects ... Saved Save Save Save Parallel Volume File Expire Opt Item Date Time Type Devices Serial Sequence Date 5 *LABEL 12/14/05 14:59:46 *FILE TFIL01 1 *VER003 Bottom F3=Exit F5=Refresh F11=Object detail F12=Cancel F23=More options
Use option 5 (Display) to see the following screen that presents a record of writing the data to the tape.
Display Media Information Save command . . . . . . . . . . . . . : SAVSPLF Saved item . . . . . . . . . . . . . . : *LABEL Save type . . . . . . . . . . . . . . : *FILE Save date. . . . . . . . . . . . . . . : 12/14/05 Save time. . . . . . . . . . . . . . . : 14:59:46 Device(s) . . . . . . . . . . . . . . : TAP03 Move policy . . . . . . . . . . . . . : TAPEFILE Expiration date . . . . . . . . . . . : *VER 003 Volume serial(s) . . . . . . . . . . . : TFIL01 Parallel devices . . . . . . . . . . . : File sequence . . . . . . . . . . . . : 1 Number of objects saved . . . . . . . : 0 Number of objects not saved . . . . . : 0 Saved size . . . . . . . . . . . . . . : 0 Label . . . . . . . . . . . . . . . . : TAPEFILXMP Error message . . . . . . . . . . . . : More... Press Enter to continue.
Due to the nature of the method used to get the data on the tape, option 7 (Restore) will not allow you to restore this object. Similarly, there are no saved objects to work with if you use option 9.