SAS Supports R, so simply write R scripts and replace the proprietary crap piece by piece.
Then use cost and security issues to kick them to the curb (A newspaper article about wasted Millions usually works if you can't get management to listen to reason and a researched cost-benefit analysis)