Writing a Function Module
Go Up to Working with UDFs and Blob Filters
To create a user-defined function (UDF), you code the UDF in a host language, then build a shared function library that contains the UDF. You must then use DECLARE EXTERNAL FUNCTION
to declare each individual UDF to each database where you need to it. Each UDF needs to be declared to each database only once.