Previous Topic: Operations on EntitiesNext Topic: MODIFY Operations


ADD Operations

ADD (or the synonym CREATE) does the following:

If the Entity Already Exists

If the entity already exists in the dictionary, the response of the compiler depends on the value associated with the DEFAULT clause of the SET OPTIONS statement:

Defaults

You can explicitly code all characteristics of the added entity or accept one or more default characteristics. Default characteristics are established:

The syntax statements identify all default values.

Establishes Update Currency

ADD SCHEMA and ADD SUBSCHEMA statements establish update currency for the specified schema or subschema. Schema or subschema entities can be updated once update currency is established.

Note: For a discussion of currency, see 9.7, “Establishing Schema and Subschema Currency”.

Use VALIDATE After ADD

ADD also sets the schema's or subschema's status to IN ERROR. A VALIDATE statement must set the status to VALID before the schema or subschema becomes a usable component.