COBOL · DB2 SQLCODE
What does SQLCODE -305 mean in COBOL?
Null value with no indicator variable. A column value was NULL, but the host variable receiving it has no null indicator variable to hold that condition, so DB2 cannot represent the result.
Null value with no indicator variable. A column value was NULL, but the host variable receiving it has no null indicator variable to hold that condition, so DB2 cannot represent the result.
Add a null indicator variable to the host variable pair in the SELECT INTO or FETCH, and check it after every fetch before using the value.