When executing scripts in Toad for Db2 that include the following command:
#SET TERMINATOR
Toad does not recognize the command and may return an error or fail to execute the script as expected. This commonly affects scripts used to create DB2 functions, stored procedures, or triggers.
#SET TERMINATOR command is a SPUFI-specific command used to override the SQL statement terminator defined in SPUFI settings. Toad for Db2 does not support SPUFI commands, and therefore this syntax is not recognized by the Toad execution engine.There is currently no workaround available to enable support for the #SET TERMINATOR command in Toad for Db2.
Users should modify scripts to remove or replace SPUFI-specific commands when executing them in Toad.