OMNI cannot handle expressions involving remote tables inside stored procedures

Item Value
SQLCODE -823
Constant SQLE_OMNI_EXPRESSION_IN_PROC
SQLSTATE WO023
Sybase error code 13829
ODBC 2 State ERROR
ODBC 3 State ERROR

Probable cause 

OMNI encountered a complicated expression involving remote tables inside a stored procedure. OMNI cannot always deal with such expressions.