Sybase version 11.5

How can I programmatically set the name of a database in code as I cannot use the USE Databasename function within a stored procedure.