Previous Topic: Changing a Record's CALC KeyNext Topic: Changing the Location Mode of a Record


Changing the DUPLICATES Option on a CALC or SORT Key

Types of Changes

You can make the following changes to the DUPLICATES option on a record's CALC or sort key:

What components are affected

The schema definition is affected. Depending on the change, the data may also be affected. All subschemas and access modules referencing the record are also affected.

Steps to change the duplicates option

See 33.2, "Modifications to an Unloaded Database" at the beginning of this chapter for the steps to change the duplicates option from:

To change the duplicates option from first to last or from last to first:

  1. Write a program using a subschema that specifies duplicates first for the CALC or sort key. The program must

    This has the effect of reversing the order of the duplicate records.

  2. Modify the schema
  3. Modify the record changing the duplicates option
  4. Validate the schema
  5. Regenerate any affected subschemas
  6. Alter affected access modules using the REPLACE ALL option

Considerations