DSNH5034I DECLARE VARIABLE NOT VALID FOR variable

Explanation

Host variable variable specified in a DECLARE VARIABLE statement is not valid for one of the following reasons:
  • A reference is made to a variable that does not exist.
  • A reference is made to a variable that is a structure.
  • A reference is made to a variable that is a component of two more structures.
  • The host variable is not defined as character, varying-length character, graphic, varying-length graphic, CLOB, or DBCLOB. In this case, CLOB AS LOCATOR or DBCLOB AS LOCATOR is not considered a CLOB or DBCLOB.
  • FOR BIT DATA, CCSID 65535, FOR MIXED DATA, FOR SBCS DATA is specified and the variable is defined as graphic, varying-length graphic, or DBCLOB.
  • FOR BIT DATA, or CCSID 65535 is specified and the variable is defined as CLOB.

System action

The statement cannot be precompiled.

User response

Correct the definition of the host variable. Precompile the program again.

Severity

8 (error)