Window function used in predicate

Error constant SQLE_ILLEGAL_WINDOW_PREDICATE
ODBC 2 state ERROR
ODBC 3 state ERROR
Severity 16
SQLCODE -964
SQLSTATE 42WA8
Sybase error code 13526
 Probable cause