I’ve received a lot of contact form entries asking for Master The Mainframe 2020 blogs. For the ones in a hurry (TL;DR): I won’t be doing master the mainframe anymore.
Reason?
Just my opinion. The system is still great, but just not for me.
Wow, you’re still here? Awesome!
I have tried the new formula they took on and it’s not my thing. Maybe it’s a motivational issue, but I’m 5 challenges into part 2 and I personally don’t like all the interaction with Visual Studio Code. The instructions via PDFs, hidden forums posts, the points system, leaderboards, … are also not my thing. It’s infinitely more difficult to navigate than the MyBlueMix version, seriously.
It feels more like I’m learning to work with a tool, rather than interacting directly with the mainframe. I’m probably wrong. But because of this, I believe I’m not learning how a mainframe works, but rather what I need to do with the extension in order to do “stuff”.
I know I’m not the target audience, but I feel something is missing. It feels like using Scratch to create a game, rather than learning how to code something you want to make. Are currently employed mainframers already using this CLI in production/real world?
Or maybe I’m not far enough into the challenges?
Even then, I believe my mainframe journey with the contest has come to an end. I’ll probably continue on MVS3.8 tk4-.
Something really worth doing in this year’s contest
There’s some optional challenges where you install an Apache Web Server on a Linux Cloud instance. That’s something we didn’t get to do in the past 2 years. There’s also Zendesk and Ansible in part 3, that’s really interesting for people looking to get into DEVOPS, but surely a full blown DEVOPS course would be a hundred times better.
Update: participating in MTM 2020? Then you can skip this blogpost and use their instructions 🙂
Ever wondered how to connect Zowe CLI to the IBM Master the Mainframe contest’s mainframe? Or how to use VSCode with Master the Mainframe’s mainframe? This will be a thorough guide on how to install and setup everything Zowe related in order to connect to the MTM mainframe. Sorry for the long title, I need to make sure Google indexes this well, haha.
Heads up, if you mess up a lot during this process you will need to reset your password a lot of times. IBM’s tolerance on failed login attempts is very low which leads to a fast lock out. This is a good thing though! Click here to read how you can reset your password.
First all of we need to install Node.js, any version above 8 or the LTS version will do.
After installation, please verify that your Node.js is correctly installed by trying the following commands in your terminal or command prompt. Before doing this, close your existing terminals completely and re-open them. This will force them to reload the environment variables defined in your system.
node --version
npm --version
Let’s ask IBM for access to Zowe
We need to talk to Zih. Who is Zih? He’s the guy you talk to when you have lost your password. Follow this guide to add Zih as a contact on Slack. Then you need to send him the following message:
Can you connect my id to zowe? Z50087
Be sure to change up your IBM ID. I have picked this off of YouTube, but I believe any sentence with Zowe and your ID in it will trigger the bot command. You could try ‘pls Zowe Z50087’.
Zowe CLI Package
After you have verified that your Node.js installation is correct, execute the following commands in your terminal.
The last command is optional, but I’m going for a complete installation.
Note, if you have an EACCESS error then you might need to give this a read. If you’re running a Linux distro then you might need to prepend sudo to your commands.
After following the initial connectivity guide in the contest we can use those variables to create our profile. Be sure to use the latest connectivity guide as reference, I’m using the 2019 version. My command now looks like this:
We can test our connection by executing a status check command. Don’t forget to change the profile name to yours.
zowe zosmf check status
Now I get to see the installed plug-ins. If the mtm2019 profile is not your default profile, then you’ll have to specify which profile you want to use in the command using –zosmf-profile ProfileName.
Delete a profile using the command zowe profiles delete zosmf profileName –force.
First install Visual Studio Code like you normally would install any other program. Yes, I am making my sentences longer than they need to be, this is a 1000 words assignment afterall. (JK).
Small note, I am using Visual Studio Code Portable from https://garethflowers.dev/vscode-portable/. This is so I can create custom VS Code instances for specific projects and langauges.
Look for the Zowe Explorer extension in the plug-in market. Install the extension.
Adding your connection to the plug-in
After installing the plug-in, a new menu item will appear. Click that menu item, then hover over data sets and you’ll see a plug sign. Click the plus sign and it will prompt you to create a new connection to z/OS.
Profile name: mtm2019
Host: https://192.86.32.91:10443
Username: z50087 (your IBM id)
Password: pass123 (your password)
Reject unauthorized: false. It’s best you search for ‘false’ in the box to make sure you can’t select the wrong one.
After the connection is set, you will need to add the profiles to the different tabs.
Plug-in in action
In data sets I active my profile, in this case it’s zowemtm2019. Then I click on the loop to perform a search action. I’ll search for my own profile, z50087.
Observe the items highlighted in red. After my query I can see all my data sets and its members.
Yes yes, I bet you have noticed. I have messed up a million times creating the profiles, I literally have like a thousand profiles that don’t work because I barely knew what URL to enter. It also took me ages to notice my IBM z/OS was locked because of my failed login attempts haha. Ha. :'(
View, rename, copy and filter mainframe data sets, USS files and jobs.
Create download, edit, upload, and delete PDS and PDS members.
Create Zowe CLI compatible zosmf profiles.
Switch between Zowe CLI zosmf profiles to quickly target different mainframe systems.
Submit jobs.
It also makes me feel young when using it.
Interesting plug-ins
First of all you might want some syntax highlighting.
IBM Z Open Editor by IBM. For Enterprise COBOL, PL/I, and JCL.
rexx-syntax-highlighting by Thomas Weber. For REXX ofcourse.
Atmospheric images
Up next?
I finally did it, a Zowe post. Believe me, it was a hassle to make. I didn’t really find any clear guides on how to do it with the master the mainframe mainframe. Or maybe I missed it? Hmm…
It has been a month or so since the last post. First of all, I would like to thank all my readers and commenters for being here and motivating me to complete the entire series! My first blog for this years’ challenge was on the 9th of September. The last one was on the 25th of December. A bit late, I know!
So, let us take a look at my badge!
It’s beautiful isn’t it? Oh god that picture… heheh.
Again, thank you all! This year was massive!
The traffic jump in comparison to last year is big. This is a screenshot that shows the traffic the blog got from the 1st all the way to the 31st of December 2019. It might not be the numbers Facebook reaches, but it’s pretty big to me. I have reached out to all corners of the world!
Master the Mainframe 2020
I don’t know the plans they have for the next edition. Last year they said they were going to cooperate with Zowe but they didn’t as far as I know. I am a bit dissapointed though! I was planning to prepare some Zowe posts but I unfortunately didn’t need to.
Some regrets
Wow, hello dedicated reader. I must apologise. I feel that the quality of explanation has lacked. The content wasn’t new to me anymore so I had a hard time feeling what really needed explanation and what didn’t. What made me realise that was the following thread in the official Slack channel.
At times my blog indeed felt like edited copies. I hope they weren’t that bad though!
The future
I have some plans for this mainframe website. Well, “mainframe” website is a big word. I want to blog about some other stuff too. So I would like to ask e-mail subscribers to reconsider their subscription, there’s a link available to opt out!
Master The Mainframe 2020
z/OS Cookbook
Those are the plans. I know, not ambitious! But I’m very interested in making a high quality cookbook. A cookbook in programming terms is just a bunch of snippets people can use to quickstart what they want to make or want to solve.