-502 The cursor that is identified in an OPEN statement is already open.
Explanation
The application program attempted to run an OPEN statement for a cursor that was already open. The statement cannot run. The cursor was unchanged (not reopened).
Response
Correct the logic of the application program to ensure that it does not attempt to run an OPEN statement for a cursor that is already open.