You can find the details of how you write UDFs in Writing User-Defined Functions (UDFs). This includes the details on the interface between DB2 and UDFs, UDF coding considerations, UDF coding examples, and UDF debugging information. For information on the related tasks of compiling and linking your UDFs, refer to the Application Building Guide.