The DEALLOCATE DESCRIPTOR statement deallocates an SQL descriptor.
This statement can only be embedded in an application program, SQL function, SQL procedure, or trigger. It cannot be issued interactively. It is an executable statement that cannot be dynamically prepared. It must not be specified in REXX.
None required.
.-SQL-. .-LOCAL--.
>>-DEALLOCATE--+-----+--DESCRIPTOR--+--------+--SQL-descriptor-name-><
'-GLOBAL-'
Descriptor persistence: Local and global descriptors are also implicitly deallocated. For more information, see Descriptor persistence
Deallocate a descriptor called 'NEWDA'.
EXEC SQL DEALLOCATE DESCRIPTOR 'NEWDA'