Error
SQLCODE -502
Cursor already open
Explanation
OPEN attempted on an already open cursor.
Solution
CLOSE cursor before reopening, or check program logic for double OPEN.
Example
OPEN cursor twice without CLOSE
Cursor already open
OPEN attempted on an already open cursor.
CLOSE cursor before reopening, or check program logic for double OPEN.