L508: Cursor identified in an update or delete is not positioned on a row.

See the section Error SQLCODES in your IBM Database Messages and Codes manual, message -508, for information.