Previous Topic: Location ModesNext Topic: Clustering


Randomization

CALC location mode

CA IDMS/DB allows users to distribute occurrences of a particular entity randomly across the area to which it is assigned. Randomization of entity occurrences is achieved with the CALC location mode.

When you specify CALC for an entity, the database uses a randomizing algorithm to calculate a storage page for each occurrence of that entity; the calculation is based on the value of a symbolic key (called the CALC key).

The diagram below shows the use of the CALC location mode to randomize entity occurrences.

The CALC location mode to randomize entity occurrences.

CA IDMS/DB stores an occurrence of a CALC entity on or near a calculated storage page. The entity is placed directly on the preferred page if sufficient space exists. Otherwise, it is placed on the next page within the area where sufficient space exists. If the end of the area is reached in the search for space, CA IDMS/DB wraps around to the beginning of the area.

Purpose of the CALC location mode

The purpose of the CALC location mode is twofold: