DB2 SQL-Error: -501
SQLState: 24501
Short Description: THE CURSOR IDENTIFIED IN A FETCH OR CLOSE STATEMENT IS NOT OPEN SQLCODES A SQLCODE I SQL FETCH CLOSE
The application program attempted to either: 1. FETCH using a cursor, or 2. CLOSE a cursorat a time when the specified cursor was not open. System action: The statement cannot be executed. Programmer response: Check for a previous SQL return code that may have closed the cursor. Commit