In ASE the syntax is ‘DeAllocate Cursor cursor_name’, whereas in MS SQL Server it is ‘DeAllocate cursor_name’.
DeAllocate Cursor cursor_name
DeAllocate cursor_name