I attribute about 95% of my learning to actually doing work. Most of my peers would agree and even push it further to “95% of my learning is by screwing things up.” For many computing platforms, it is very easy to spin up a VM and get working. However, it seems nearly impossible to do with the mainframe. That is, until you hear about Hercules.
When I first heard about Hercules in college, I was fascinated. You are telling me I can run a mainframe off my laptop? I rushed to the dorms to begin my journey to become a mainframe expert. Then, it hit me…
“Wow, there is WAAAAYY too many things here I have no idea about. I don’t even know where to begin…Well, I guess it is time to learn more about Linux…”
And that was it. It is not that the Hercules documentation is poorly written. It is not that the system is just too complex. It is the culture of the mainframe world. Every mainframer I talk to, every manual I read – they all assume knowledge. And rightfully so. There is so much information and so many things you can do with a mainframe. It is impossible to have an easy Mainframe 101 crash course.
But, impossible has never stopped me from trying before…
Mainframe 101: Crash Course – Step 1: Obtain a Mainframe
Step 1 – Get a Debian-based server going
Step 2- Download the following:
- MVS Operating System
- 3270 Emulator
Step 3 – Install Hercules on your Server
- Install Hercules from the repo:
sudo apt-get install hercules
Step 4 – Configure MVS System (TurnKey)
- Extract the TurnKey ISO to ~/turnkey
- Change directory into turnkey
cd turnkey
- Change the permissions on ./setup
sudo chmod 777 setup
- Run standard setup
./setup -a
- Confirm the installation with a ‘Y’ when prompted
- Enter ‘SECRET’ as the catalog password
- Press ENTER to complete the install when prompted
Step 5 – Start up the Machine
- Change directory to ../mvs38j
cd ../mvs38j
- Start the machine
./startmvs
- WAIT!
You will be prompted to ensure you have 3270 sessions for consoles and TSO terminals. Make sure you have these running before you IPL. You will waitstate if you do not have these connected.
Step 6 – Setup your 3270 sessions
- Install wc3270 from the download in Step 1 on your client pc
- Launch wc3270wiz.exe
- Enter ‘1’ to Create new session
- Enter ‘console1’ for session name
- Enter the IP address of your server
- Enter ‘3’ to change TCP Port
- Enter port ‘3270’
- Press ENTER on the Options screen to confirm the settings
- Enter ‘y’ to create session file
- Enter ‘y’ to create desktop shortcut
- Enter ‘1’ for Create new session
- Enter ‘tso1’ for session name
- Enter the IP address of your server
- Enter ‘2’ to change the ‘Logical Unit Name’
- Enter ’00C0′ for the LU
- Enter ‘3’ to change TCP Port
- Enter port ‘3270’
- Press ENTER on the Options screen to confirm the settings
- Enter ‘y’ to create session file
- Enter ‘y’ to create desktop shortcut
- Enter ‘8’ to exit
- Start the two session on your client pc
Step 7 – IPL!
- On your server, press ENTER to complete starting Hercules
- Enter ‘ipl 148’
- On your console session, you will receive a message:
- Enter the following to specify no system parameters and create a link pack area:
R 00,CLPA
- If you see the following message:
Enter the following command:
R 00,Y
And then start JES2 with the following:
S JES2,,,PARM=’FORMAT,NOREQ’
Reply to the UNABLE TO OBTAIN… message again:
R 01,Y
And then reply to the confirmation message:
R 02,Y
- Issue the following to display the running tasks:
D A,L
If you see TSO running, you can login with your TSO session.
- On your TSO 3270 session, login as IBMUSER
- You are now on your mainframe. Have fun!
Appendix
How to shutdown the system:
- From the console, issue the following command:
F BSPPILOT,SHUTNOW
- Once you see that the shutdown is complete, verify JES2 is the only running task:
D A,L
- Shutdown JES2:
$PJES2
- Once JES2 is terminated, halt the SMF recording:
Z EOD
- The MVS system is now down. On the Hercules console, issue:
quit
Available User IDs:
User ID | User Password | Description |
---|---|---|
IBMUSER | -n/a- | Default Emergency ID |
HERC01 | -n/a- | Sysprog User ID #1 |
HERC02 | CUL8TR | Sysprog User ID #2 |
HERC03 | -n/a- | Standard User ID #1 |
HERC04 | PASS4U | Standard User ID #2 |
IBMUSER | -n/a- | Default Emergency ID |
IBMUSER | -n/a- | Default Emergency ID |
Useful Links:
Connor Kurkoski Link: https://www.youtube.com/watch?v=45X4VP8CGtk
Hercules Link: http://www.hercules-390.org/
Turnkey Link: http://www.bsp-gmbh.com/turnkey/
RPF Tutorial: http://www.bsp-gmbh.com/hercules/rpf151.pdf
QUEUE Information: http://www.prycroft6.com.au/vs2sw/index.html#queue
Free Debian (Ubuntu) Link: https://www.ubuntu.com
VMware Virtualization: http://www.vmware.com/products/player/