Is there a way to use mainframe on Mac machine. I want to practice mainframes(COBOL, JCL, DB2) on MAC or windows, preferably MAC.
I have never tried, but Hercules is a mainframe emulator that should run on OSX. The main problem though with any kind of mainframe emulation is getting the software you want. Very few (if any) of the software that runs on modern mainframe is licensed to run on emulators.
If you provide a bit more background as to what you are trying to achieve, then someone should be able to come up with a more helpful answer. That is, are you trying to understand the architecture, learn assembler, work with IMS or CICS, etc?