-472 CURSOR cursor-name WAS LEFT OPEN BY EXTERNAL FUNCTION function-name (SPECIFIC NAME specific-name)
Explanation
The function program did not close the specified cursor. Modify the function program so that it closes the cursor.
System action
The statement cannot be processed.
Programmer response
Reissue the statement.
SQLSTATE
24517