Sybase ASE supports stored procedures, which can take and return user-supplied parameters.
Sybase ASE stored procedures can also produce one or more result sets.