Error
SQLCODE -507
Cursor not open for UPDATE
Explanation
Cursor not declared FOR UPDATE but UPDATE WHERE CURRENT attempted.
Solution
Add FOR UPDATE clause to cursor declaration.
Example
DECLARE cursor FOR SELECT... -- missing FOR UPDATE