Host variables may not be used within a batch

Item Value
SQLCODE -807
Constant SQLE_HOSTVARS_IN_BATCH
SQLSTATE 07W07
Sybase error code 13817
ODBC 2 State ERROR
ODBC 3 State ERROR

Probable cause 

You have attempted to execute a batch which contains host variable references. Host variables are not supported within a batch.