The question: How do I move away from mainframes?

The solution: Retrain while you are seeking work