%1 does not return a result set

Item Value
SQLCODE -872
Constant SQLE_NO_RESULT_SET
SQLSTATE WP014
Sybase error code 13876
ODBC 2 State ERROR
ODBC 3 State ERROR
Parameter 1 Name of the procedure.

Probable cause 

A procedure called in the FROM clause of a SELECT statement must return a result set.