To free statement resources.
DROP STATEMENT [ owner.]statement-name
statement-name: identifier, or host-variable
Embedded SQL.
Must have prepared the statement.
None.
The DROP STATEMENT statement frees resources used by the named prepared statement. These resources are allocated by a successful PREPARE statement, and are normally not freed until the database connection is released.
1. EXEC SQL DROP STATEMENT S1;
2. EXEC SQL DROP STATEMENT :stmt;