Copying a database from another MUF.
Run DBUTLTY INIT of the IXX.
Then trying to LOAD the data area gets error:
DB02406I - PXX END - DATA CONTROL BLOCK AND CXX NAME DO NOT MATCH
DB00501E - OPEN ERROR - RETURN CODE 72 (002) CXX=MUFT (xxxnnnnn)
DB00508E - CXXLINK=MUFP
DB10045E - ABNORMAL TERMINATION DUE TO ERROR(S)
The error indicates the database area is linked to CXX named MUFP but trying to LOAD the area with a CXX named MUFT.
Normally running a DBUTLTY FUNCTION=LINK DBID=nnnnn would resolve this but in this case because the IXX has been initialized the LINK fails with RC 69 (71):
LINK REPORT DBID AREA CXXNAME DSN ERROR INFORMATION nnn IXX MUFT DATACOM.nnnIXX nnn xxx DATACOM.nnnxxx 69 (71) INDEX NOT LOADED FOR TABLE
Firstly make sure the correct files are used. Check the dataset names in the LINK REPORT output of the LINK to make sure the CXX is pointing to the MUFT copy of the files and not the original MUFP files.
If the MUFT CXX dataset names are pointing to the MUFP files, rename the files in the CXX by running DBUTLTY with:
If the dataset names are correct, then run an INIT of each of the areas before the LOAD.
For example to null load an area:
INIT DBID=nnn,AREA=xxx LOAD DBID=nnn,AREA=xxx,FORMAT=NONE