The DROP PROCEDURE data description statement deletes the definition of the referenced procedure from the dictionary. For procedures 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 PROCEDURE statement, you must own or have the DROP privilege on the procedure named in the statement.
►►─── DROP PROCEDURE ───────┬──────────────────┬─ procedure-identifier ───────► └── schema-name.───┘ ►────┬───────────┬───────────────────────────────────────────────────────────►◄ └─ CASCADE ─┘
Specifies the name of the procedure to be dropped. Procedure-identifier must identify a procedure defined in the dictionary.
Identifies the schema associated with the specified procedure. 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 procedure, either directly or nested within some other view reference.
The following DROP PROCEDURE statement example removes the EMP.GET_BONUS procedure from the SQL catalog.
drop procedure emp.get_bonus cascade
|
Copyright © 2014 CA.
All rights reserved.
|
|