Testing a user-defined function by using driver applications
You can write a small driver application that calls a user-defined function as a subprogram and passes the parameter list for the user-defined function. You can then test and debug the user-defined function as a normal Db2 application under TSO.
About this task
You can then use TSO TEST and other commonly used debugging tools.