DSNH5033I DECLARE VARIABLE NOT VALID FOR variable

Explanation

Host variable variable specified in a DECLARE VARIABLE statement is not valid. The DECLARE VARIABLE statement occurs after any SQL statement (in a COBOL or FORTRAN application program) or after a DECLARE CURSOR statement (in an application program in any other host language), where the SQL statement and the DECLARE VARIABLE refer to the same variable.

System action

The statement cannot be processed.

User response

Ensure that the DECLARE VARIABLE occurs before the use of the host variable in an SQL statement in the application.

Severity

8 (error)