A sourced function is implemented by invoking another function (either built-in, external, or sourced) that is already registered in the database.
To create a user defined function (sourced):
push button to select from an available list of schemas. A user-defined function resides in the schema in which it was registered. The schema cannot be SYSIBM.
If the function has more than 30 parameters, the combination of name, schema name, and the number of parameters must not identify a user-defined function that exists at the current server.
If the function is sourced on an existing function to enable the use of the existing function with a distinct type, the name can be the same name as the existing function. You can use the same name for more than one function if the function signature of each function is unique.
push button to select from an available list of schemas.
push button to select from an available list of functions. This is the function to be used as the source function
When you have selected a specific function name for the source, you see a list of source and input parameters that will be used for the function that you are creating. The number of parameters for this function must match between the source function and the function you are creating, but you can make data type changes that are compatible with the source data types.
push button to define an output parameter. This opens the Change Data Type window.
![]()
Related information