Host variables must not be used within a batch

Error constant SQLE_HOSTVARS_IN_BATCH
ODBC 2 state ERROR
ODBC 3 state ERROR
Severity 15
SQLCODE -807
SQLSTATE 07W07
Sybase error code 13817
 Probable cause