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