Too many columns in procedure result set

Error constant SQLE_TOO_MANY_COLUMNS_IN_PROC_RES
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 16
SQLCODE –1237
SQLSTATE 54W15
Sybase error code 13281
Probable cause

You executed a statement with too many expressions in the GROUP BY list. The number of expressions within a GROUP BY list is limited to 60000. You executed a CREATE PROCEDURE or ALTER PROCEDURE statement. The resulting number of columns in the result set of the procedure would exceed the server's limit.