Explanation
The address of a program variable was not set in SQLDA.
User Response
In SQLDA, write the address to the HOSTVARADDR position.