Sequence of Fetching Result Sets and Out Parameters
For Sybase stored procedures that return a result set, the Open-Client Client Library returns the OUT parameters only after the result sets are returned. Hence, you should call fetchReturnParams() only after completely processing all the result sets. Calling this method before processing the result sets cancels the result sets.