I don't have the time to go into detail right now - but this is strictly a Sybase issue, and I suggest that you ask on one of the Sybase news groups at news://forums.sybase.com/, for example in public.sybase.ase.administration.
Michael
Comment on Re: How to determine when sybase process complete