The DROP FUNCTION data description statement deletes the definition of the referenced function from the dictionary. For functions with language SQL, the statement removes the SQL routine body from the dictionary and the associated entities: access module (AM), relational command module (RCM), ADS premap process code, and dialog load module.
To issue a DROP FUNCTION statement, you must own or have the DROP privilege on the function named in the statement.
►►─── DROP FUNCTION ┬───────────────┬─function-identifier ────────────────────► └─ schema-name. ┘ ►───────┬───────────────┬─────────────────────────────────────────────────────►◄ └── CASCADE ────┘
Specifies the name of the function to be dropped. Function-identifier must identify a function defined in the dictionary.
Identifies the schema associated with the specified function.
If you do not specify a schema-name, the default value is:
Directs CA IDMS to delete any view definition that contains a reference to the function, either directly or nested within some other view reference.
The following DROP FUNCTION statement removes the FIN.UDF_FUNBONUS function from the SQL catalog:
DROP FUNCTION FIN.UDF_FUNBONUS CASCADE;
|
Copyright © 2014 CA.
All rights reserved.
|
|