SETUSER not allowed in procedures, triggers, events, or batches

Error constant SQLE_SETUSER_NOT_IN_PROCEDURES
ODBC 2 state ERROR
ODBC 3 state ERROR
Severity 16
SQLCODE -877
SQLSTATE 42W09
Sybase error code 13888
 Probable cause