Previous Topic: Dropping a RoutineNext Topic: Modifying Indexes, CALC Keys, and Referential Constraints


Modifying a Routine

Types of Changes You Can Make

The following attributes of a routine can be changed:

Additionally, you can also add or remove a key from a procedure or table procedure. Keys are used to assist CA IDMS/DB in calculating the amount of resources that will be consumed by a given routine invocation.

Statements That Modify Routines

To modify a routine's attributes, use one of the following statements:

To associate a new key with a procedure or table procedure, use the CREATE KEY statement. To drop a key, use a DROP KEY statement.

Examples

In the following example, function CORP_DATE is altered to change the external name of the function.

alter function corp_date external name corpdate: