Previous Topic: Reorganization StepsNext Topic: System Output


Functions of the Reorganization Steps

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.

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.