Mainframe (zOS) software is still very much in use right now. Many of the most critical applications of banks, insurance companies, airlines, global companies, etc are running on (good old) mainframes.
However, for companies that are in the business of developing and supporting mainframe softwares, it may be (terribly) expensive to have the required infrastructure for developing, testing and supporting such software.
What are possible solutions for developing and supporting mainframe software without paying fortunes for the required infrastructure (and spending all software revenue to it)?