Handling a parameterized user-defined routine

For an introduction on how to determine input parameters, see Determine unknown input parameters. This section describes how to handle a parameterized user-defined routine with an sqlda structure. The following statements execute user-defined routines:
  • The EXECUTE FUNCTION statement executes a user-defined function (external and SPL).
  • The EXECUTE PROCEDURE statement executes a user-defined procedure (external and SPL).

If a prepared EXECUTE PROCEDURE or EXECUTE FUNCTION statement has arguments specified as input parameters of unknown number and data type, your program can use an sqlda structure to define the input parameters.