Copying a Datacom database area from another MUF using DFDSS.
Run DBUTLTY INIT of the IXX.
Then trying to RETIX 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
Release: 15.1
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:
CXXMAINT OPTION=ALTER,AREA=xxx,DBID=nnn,DSN=newname
If the dataset names are correct in the CXX, then before copying the data area run an INIT on the IXX and the area and then NULL load the area, this will mark the index as loaded.
INIT DBID=nnn,AREA=IXX
INIT DBID=nnn,AREA=xxx
LOAD DBID=nnn,AREA=xxx,FORMAT=NONE
Then copy the file and run the LINK before the RETIX.
The full procedure to copy a data area is documented below.
Perform the following steps to copy an area from another MUF:
See documentation sections Creating Copies of Databases and Data Areas, LINK, RETIX, QUIESCE and QUIESCE_DBID