L499: CURSOR cursor-name ALREADY ASSIGNED TO procedure-name RESULT SET

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