DELETE ATTRIBUTE [ HP SYSTEM DICTIONARY XL SDMAIN ] MPE/iX 5.0 Documentation
HP SYSTEM DICTIONARY XL SDMAIN
DELETE ATTRIBUTE
Deletes an attribute.
Syntax
DEL[ETE] A[TTRIBUTE] attribute-name
[;PURGE]
.
Parameters
attribute-name Name of the attribute to be deleted.
PURGE If you specify this keyword and any entity types or
relationship types that are associated with the
specified attribute exist, then the association
between the attribute and the entity type or
relationship type is also purged. If you do not
specify PURGE, and the attribute is associated with
an entity type or relationship type, the operation
fails.
Description
When an attribute is deleted, the attribute values are deleted from all
entities and relationships that previously had the attributes associated
to them.
Open Mode: Customization
Scope: DA scope or the attribute's owner scope
WARNING When a version is in archival status, it is considered frozen,
protecting its data from modification. However, archival status
does not freeze the dictionary structure. Therefore, if the
dictionary structure is changed, the structure of archival
versions is also changed. In the case of additions to the
dictionary structure, no serious problems will result. However,
deletions from the dictionary structure may be detrimental to
archival versions. Therefore, this should be considered when
making deletions that affect dictionary structure.
Example
The following example deletes the attribute time-created. Because the
keyword PURGE is not specified, the operation fails if time-created is
associated with any entity types or relationship types.
>DELETE ATTRIBUTE time-created.
>
MPE/iX 5.0 Documentation