Previous Topic: Copy StructuresNext Topic: Disable and Enable Structures


Delete Structures

In FILEMAINT Mode, use the DELETE function when you want to delete a CA FILE Model structure or substructure from CA Datacom Datadictionary.

You can use the DELETE function with FILE, RECORD, KEY, ELEMENT and DATAVIEW occurrences. To delete FIELD occurrences, see Update Field.

How It Works

When you delete a structure that is the root of the structure, all entity-occurrences within the structure are also deleted. For example, when you delete a RECORD substructure, you also delete the FIELD, KEY, and ELEMENT occurrences.

The results of the DELETE function in CA Datacom Datadictionary vary depending on the status of the structure or substructure.

Relationships

Deleting a structure or substructure can affect other occurrences in the FILE structure and occurrences that are not part of the FILE structure. For example, when you delete a FILE structure, it can affect a DATAVIEW occurrence which is related to the ELEMENT or KEY occurrence previously contained in the structure. Therefore, before you delete the file, determine whether DATAVIEW occurrences are related to any occurrences in the structure, and take the appropriate action.

In HIST Status

With the proper authorization, you can delete a structure or substructure in HIST status. However, when the maximum number of allowed HIST status versions is reached, CA Datacom Datadictionary automatically deletes the structure or substructure with the oldest date/time stamp. The maximum number of HISTory status versions is specified in the ENTY-HIST-VERS attribute of the TABLE occurrence for the entity-type in the DATA-DICT database.

More Information

How to Use

Use one of the following procedures to perform this function: