area copied and index access received 0307

Document ID : KB000121630
Last Modified Date : 28/11/2018
Show Technical Document Details
Question:
Test and Production systems contain the same page range for 2 areas.  These areas were copied from Prod to Test. One area contains a system owned index, the other area contains the member record for this index set. After the copy, the area can be readied, I can area sweep on the member records, but I cannot access the index, I receive an 0307.  Why can't I access the index after the copy of the 2 areas?
Answer:
In addition to the area's page ranges, the set definitions for the index must match between the 2 systems. In the Prod CV the index schema set definition specifies
SET NAME IS IX-INDEX-SET 
WITHIN AREA INDEX-AREA OFFSET 25 PERCENT FOR 100

In the Test CV, the index schema set definition specifies
SET NAME IS IX-INDEX-SET 
WITHIN AREA INDEX-AREA OFFSET 0 PERCENT FOR 100

This difference in the offsets specified causes the index area page range to be different between these 2 system, so that the system owned index (which is found by calcing to the SR7) will not be found and an 0307 will be issued.
Once the Test schema was modified and the Test subschema generated/new copied, then the index set was accessible in the Test CV.

Just a note, that any SYMBOLICS defined to the DMCL for this index must also match between the 2 systems.