The option '%1' cannot be set from within a procedure

Error constant SQLE_OPTION_IN_PROCEDURE
ODBC 2 state 42000
ODBC 3 state 42000
Parameter 1 Name of the option that could not be set.
Severity 14
SQLCODE -217
SQLSTATE 42W53
Sybase error code 5878
 Probable cause