Dynamic Routine-Name Specification of SPL Procedures
Dynamic routine-name specification simplifies the writing of an SPL routine that calls another SPL routine whose name is not known until runtime.
To specify the name of an SPL routine in the EXECUTE PROCEDURE statement, instead of listing the explicit name of an SPL routine, you can use an SPL variable to hold the routine name.
If the SPL variable names an SPL routine that returns a value (an SPL function), include the INTO clause of EXECUTE PROCEDURE to specify a receiving variable (or variables) to hold the value (or values) that the SPL function returns. For more information on how to execute SPL procedures dynamically, see the HCL OneDB™ Guide to SQL: Tutorial.