L496: SQL STATEMENT REFERENCES A RESULT SET NOT CREATED BY THE CURRENT SERVER

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