Warning: Host variable ‘:{name}’ is undefined here; embedded SQL reads it as NULL
An embedded SQL statement reads an input host variable, written :name, that nothing
assigns beforehand. IRIS compiles the code and runs the statement with NULL for the
variable. A WHERE Name = :name then matches no row (SQLCODE 100), and a VALUES (:name)
stores NULL. Assign the variable first, or write NULL where NULL is meant.
IRIS compiles the example.
Class Demo.UndefinedHostVariable
{
ClassMethod Description() As %String
{
&sql(SELECT Description INTO :description FROM %Dictionary.ClassDefinition WHERE Name = :className) //! A6627
Quit description
}
}