Cannot handle expressions involving remote tables inside stored procedures

Error constant SQLE_OMNI_EXPRESSION_IN_PROC
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 12
SQLCODE –823
SQLSTATE WO023
Sybase error code 13829
Probable cause

The server encountered an expression involving remote tables inside a stored procedure. The expression was too complicated to process.