-056   AN SQLSTATE OR SQLCODE VARIABLE DECLARATION IS IN A NESTED COMPOUND STATEMENT

Explanation

An SQLSTATE or SQLCODE variable declaration is in a nested compound statement instead of the outermost compound statement in the SQL routine.

System action

The statement cannot be processed.

User response

Change the routine definition so that the SQLSTATE and SQLCODE variables are only declared in the outermost compound statement of the SQL routine.

SQLSTATE

42630