Previous Topic: Deleting Schema RecordsNext Topic: Changing the DUPLICATES Option on a CALC or SORT Key


Changing a Record's CALC Key

Types of Changes

You can make the following changes to a record's CALC key:

What components are affected

Both the schema record definition and the data are affected. Subschemas and access modules that reference the record are also affected.

Steps to change the CALC key

To change the CALC key of a schema record where data has been loaded:

  1. Add a new schema based on the original schema
  2. Modify the record in the new schema specifying the new CALC key or any changes to fields currently participating in the record's CALC key
  3. Validate the schema
  4. Execute the RESTRUCTURE utility if any fields within the record's CALC key have had their definitions changed or any of the conditions discussed under "Considerations" apply
  5. Create a new global subschema if applicable
  6. Unload and reload the database
  7. Complete the process by updating the original schema definition, regenerating subschemas, and altering affected access modules

Considerations