-502   THE CURSOR IDENTIFIED IN AN OPEN STATEMENT IS ALREADY OPEN

Explanation

The application program attempted to execute an OPEN statement for a cursor that was already open.

System action

The statement cannot be processed. The cursor was unchanged (that is, it was not 'reopened').

Programmer response

Correct the logic of the application program to ensure that it does not attempt to execute an OPEN statement for a cursor that is already open.

SQLSTATE

24502