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

Document ID : KB000020991
Last Modified Date : 14/02/2018
Show Technical Document Details

Question: 

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

 

Answer: 

If there are overlapping ranges between the two VMF's, you need to exclude the overlapping ranges or use CA 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. You will need to clean up all chaining issues on both VMF's. Refer to CA 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. You can allocate the new VMF via ISPF 3.2 or in batch via IEFBR14.

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', 

// BUFNO='80',

// IDCK='CAI.CTAPOPTN(TLMSIDCK)', 

// LOAD='CAI.CTAPLINK',

// OPTS='CAI.CTAPOPTN(TLMSIPO)',

// MERGE='CAI.TLMS.MRGE.VMF', 

// SORTLIB='SYS1.SORTLIB',

// SPCVMF='(CYL,(5,5))',

// WORK='SYSDA',

 

// VMF='CAI.TLMS.VMF' 

 

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.