SQL$HELP_OLD72.HLB  —  Errors  SQL_ERRORS, PRESTAOPE
  Cannot prepare or release statement name used by an open cursor

  Explanation:  You declared a cursor based on a prepared
  statement name and opened the cursor.  While that cursor was
  still open, you tried to prepare or release the same statement
  name.

  User Action:  Close the cursor or end the transaction before
  using a PREPARE or RELEASE statement with the same statement
  name.
Close Help