try to add “set fmtonly off” (or its analog in Sybase) in the beginning of the procedure
and make sure your code generate the same number of columns as you specified in BO query
and you can check this - stored procedures in the universe - https://bobj-board.org/t/129027
Dmitry Biryukov (BOB member since 2006-10-15)