I forgot to mention that there are emulators out there. I have never used one but here's one from a quick google search: http://en.wikipedia.org/wiki/Hercules_(emulator)
When I was in school, IBM occasionally had z/OS programming contests and would provide an environment for student competitors.