Call an iterator function from an SQL statement

For end users to be able to use an iterator function within an SQL statement, take the following actions:
  • Register the iterator function with the ITERATOR routine modifier.
  • Associate the iterator function with a cursor to execute the function.