Previous Topic: Adding Schema RecordsNext Topic: Changing a Record's CALC Key


Deleting Schema Records

What components are affected

Deleting schema records affects the schema and the data. It also affects subschemas and access modules that reference the record and any other records connected to the record through sets. SQL views referencing the record become invalid.

Steps to delete a record

To delete a record from the schema where data has been loaded:

  1. Write and execute a program to erase all occurrences of the record
  2. Create a new schema based on the original schema omitting the record and omitting any affected sets
  3. Validate the schema
  4. Use the schema compare utility (IDMSRSTC) to generate the IDMSRSTT macro statements
  5. Restructure the database using the RESTRUCTURE utility statement

    Note: If the record does not participate in any set relationships, there is no need to restructure the database.

  6. Complete the process by updating the original schema definition, regenerating subschemas, altering affected access modules, and dropping affected views

Considerations