What is the SQLcode -501 ?
- SQLcode -501 pops up to show that , the Cursor identified in fetch or close statement is not opened.
- SQL error code means it return codes that are preceded by a minus sign (-) indicate that the SQL statement execution was unsuccessful.
- If SQLCODE = 0, execution was successful.
- If SQLCODE > 0, execution was successful with a warning.
- If SQLCODE < 0, execution was not successful.
- SQLCODE = 100, “no data” was found.