SQL Codes › SQL Return Codes -1 through -999 › -502 - CURSOR ALREADY OPEN
Explanation
A plan running in SQLMODE=DB2 mode has attempted to open a cursor that is already open.
The SQLSTATE that equates to this SQL return code is 24502.
User Response
Correct the application logic.