It gets even worse: I got stuck for a year once working on COBOL software that only ran on Solaris, depended on Micro Focus's buggy and slow $3000 compiler, did binary searches across flat files and depended on Unix calls like mmap(). I got it up and running long enough to see how the code worked so that it could be rewritten in Pascal (this was chosen because that's what the guy I was working with preferred).
COBOL is a terrible, verbose language that doesn't even have local variables. It belongs on the ash-heap of computing history, not in any project that should be maintained today.
There are commercial software packages for re-hosting mainframe applications to other platforms. These typically provide not only COBOL and PL/I compilers but also functional equivalents of CICS, VSAM, JCL (JES2), and other mainframe system software.
So an open-source/free version of one of those "re-hosting" packages sounds like it would be useful for someone wanting to learn about cobol + mainframe development, but I can't imagine that ever happening (demand can't be too high) lol.