Today we’re doing some more ASM. I personally don’t really like these challenges, but at least it’s nice to get in touch with the language. Last year IBM said they would work with ZOWE. Why did they cancel it?
Ah well, let’s continue.
Warning: you need to echo High level languages hide complexity of assembler instead of High level languages hide complexity of system assembler. Without the word “system”. If you want extra points you’ll need to use a non-blank continuation character on 72th of the first line. See comments for more information. Thanks Victor and Daniel!
Z Assembler Mnemonic Instructions and Macros
IBM Master the Mainframe Part Three – Challenge #11
Assembler program modification
So after reviewing the code we need to modify the member asmhello of our data set source to write another message: “High level languages hide complexity of assembler“. Hiding the solution for this challenge will be hard, but I’ll do my best to make things as clear as possible.
Take a closer look at how they define the program body. They always have a pair of MVC and PUT. This for both variables and both echos. Make a new one, I have called it CHMSG. It stands for chapter message. Pick something else please 😉
The echos in the references part always start with the variable name, DC, CL80′message’ and then it’s done. If the text string “High level languages hide complexity of assembler” does not fit, shift the screen more to the right and complete the sentence.
Submit JCL to compile assembler program source code
I submit ; =sd ; st the JCL and jump back to the ISPF Primary Option Menu. From there I navigate to the console using =6 and execute two commands.
- allocate dataset(*) file(recdd) shr
Assembler program writes to RECDD file name
The above allocates RECDD file name to the display, *
- call ‘z#####.load(asmhello)’ – substitute your ID for z######
Successfull execution writes three messages to the display
And yes I have that!
Submit JCL job to execute successfully compiled assember program
From the ISPF Primary Option Menu I execute tso submit ‘zos.public.jcl(p3ch11)’ and I chose the job character ‘a’.
There we go! I had some trouble with this challenge and never found the real reason. Suddenly my message displayed, weird! But hey! I’m not complaining, up to challenge 12!