If you want to create an SQL or SPL function that is similar to an SQL function in your IBM® database, you can base the new function on the existing function definition.
To create an SQL or SPL function from an existing function:
The IBM Function Designer opens, with the information for the selected function displayed in the fields of the designer. The values in the Function name and Specific name fields contain an incremental numeric suffix.
For detailed information about the fields in the designer views, see IBM Function Designer.
The SQL or SPL function is created and added to your database.
Developing IBM Database Functions | IBM Database Functions | Managing Procedures, Functions, and Objects