The table below shows how the reorganization steps can be grouped together by function. The table gives you a clear picture of which steps perform the allocation and update functions and which steps access the old database and the new database, or both.
If a record is indexed and the index is maintained in db-key sequence, the extract is flagged for later special processing by the MATCH step and the IIXSDBK step.
If an integrated index (SR8) resides in an area being copied, the program:
This step also creates a separate file for integrated index sets sorted by db-key. The file contains two records for each lower level SR8 record and one record for each upper level SR8 record.
The first lower level records identifies the new db-key. The second lower level record contains a sequence number that identifies the entry's relative position among the duplicates that have the same db-key key. If there are any upper level records that point to lower level duplicates, a record is created that contains the same sequence number as the lower level record to which it points.
Reorganization Steps and Their Functions:
|
Step/Function |
Allocates Records to Area Specified in COPY Statement |
Updates Set Linkage |
Accesses Old Database |
Access New Database |
|---|---|---|---|---|
|
OPTALLOC Step |
Computes optimum target page. |
Extracts pointers which will change. If copying area with IIX set, writes individual bottom level entries to SECOPTA. |
Reads records being copied and those with set linkage. |
|
|
PRIALLOC Step |
Allocates DIRECT, CALC, and VIAs stored on owner's page. |
|
|
|
|
SECALLOC Step |
Allocates CALC, DIRECT, VIA overflows, fragments, VIAs not stored on owner's page and SR8 records. Rebuilds IIX tables to create new SR8 structures. |
Extracts pointers for all SR8 set linkage. |
|
|
|
MATCH Step |
Replaces old db-key in pointer extracts with new db-keys from allocations. |
Replaces old db-key in pointer extracts with new db-keys from allocations. |
|
|
|
IIXSDBK Step |
Reorders IIX set sorted by db-key into proper sequence of db-key. |
Reorders IIX set sorted by db-key into proper sequence of db-key. |
|
|
|
UPDLINK Step |
|
Updates pointer prefix or IXDET table entry with new db-key. |
Modifies records with set linkage in non-copy areas. Extracts all records residing in copy areas. Creates the DBREC file and optionally creates the DBKEYS file. |
|
|
STORE Step |
|
|
|
Populates areas being copied. |
The IIXSDBK step is executed only if you have COPYed an area containing an integrated index set sorted by db-key. Otherwise CA IDMS/DB Reorg automatically bypasses the step.
|
Copyright © 2014 CA.
All rights reserved.
|
|