L514: The cursor name is not in a prepared state.

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