Procedure to MERGE 2 VMF files
search cancel

Procedure to MERGE 2 VMF files

book

Article ID: 20991

calendar_today

Updated On:

Products

TLMS Tape Management

Issue/Introduction

What it is the procedure to follow to merge 2 VMF files?

Resolution

If there are overlapping ranges between the two VMF's, the first thing is to exclude the overlapping ranges or use Copycat to copy these volumes to another volume series. Restoring two VMF's with the same range will result in loss of volume information in the VMF.

1. Execute PROC TLMS.CTAPPROC(CATVMFV) on both VMF's. Need to clean up all chaining issues on both VMF's. Refer to TLMS Configuration guide for information on cleaning up the VMF chaining errors.

2. Execute PROC TLMS.CTAPPROC(CATVMFID) will report on the INITDECKs for the VMF. Run this PROC against both VMF's.

3. In the TLMS.CTAPOPTN library, update the TLMSIDCK member with both ranges. Also increase the number of AUX and WARNING records in the member. Add the AUX parameter together from both VMF's to get the total for the merged VMF. Do the same with the WARNING parameter.

4. Stop all tape activity and bring down CTS.

5. Run PROC TLMS.CTAPPROC(CATVMFB). Run this PROC against both VMF's.

6. Allocate the new VMF. Add the number of CYLS from both VMF's to determine the amount of space needed for the merged VMF. 

7. Execute PROC TLMS.CTAPPROC(CATVMFI). Verify that the correct TLMS.CTAPOPTN(TLMSIDCK) is being used for the IDCK symbolic. This job will initialize the merged new VMF with both ranges.

8. Run PROC TLMS.CTAPPROC(CATVMFMR) to merge the two VMF's. Update the following:

//****************************************************** 
//* **** PROCNAME=CATVMFMR *****
//******************************************************
//** PROCEDURE TO MERGE TWO VOLUME MASTER FILES *
//******************************************************
//* Comments
//CATVMFMR PROC A='*',
// BKUPVMF='CAI.TLMS.BKUPVMF',         <== (VMF  - A)
// BUFNO='80',
// IDCK='CAI.CTAPOPTN(TLMSIDCK)', 
// LOAD='CAI.CTAPLINK',
// OPTS='CAI.CTAPOPTN(TLMSIPO)',
// MERGE='CAI.TLMS.MRGE.VMF',    <== (VMF  - B)
// SORTLIB='SYS1.SORTLIB',
// SPCVMF='(CYL,(5,5))',
// WORK='SYSDA',
// VMF='CAI.TLMS.VMF'        <== (New merged VMF file)

9. Execute PROC TLMS.CTAPPROC(CATVMFV). Ensure there are no chaining errors on the new merged VMF.

10. Execute PROC TLMS.CTAPPROC(CATVMFXI) to build a new VMF index.

11. Verify that the volume ranges are in the new VMF by checking via TLMSISPF or running the TLMS Earl Master report(TLMS.CTAPEARL(TLERPT04)).

12. Run PROC TLMS.TAPPROC(CATTRS) with a SYSIN of FORECAST. Review the SCRATCH and MOVEMENT reports. Bring up CTS, the merge is complete.