-6003: Duplicate result table name
Explanation:
The SQLMODEs ANSI and DB2 require that a result table generated by DECLARE CURSOR is closed using a <CLOSE statement>, before the result table name can be used to open a new result table within the same transaction.
User Action:
Insert a CLOSE statement into the application.