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

The option specified in the SET OPTION statement cannot be set from within a procedure.