This is the “last” challenge of IBM’s Master the Mainframe 2019 challenge! I can’t believe I already made 30 blogposts in the last 4 months. Time goes by so fast!
The fifteenth challenge requires every individual contestant to come up with something unique. I won’t be much of help with the fifteenth challenge but at least you’ll have an example. I hope I don’t set the bar too low or something haha.
This challenge looks simple, perfect finishing touch to the part 3 challenge series in my opinion.
Hi California 😉
Tip by Kevin Durant: your output is going to be different than mine.
Tip by Felipe Fontes: S0W1, 0 is ZERO, not the letter O.
z/OS System Log
IBM Master the Mainframe Part Three – Challenge #14
Get and execute LOGLOOK REXX code
In my REXX data set I’ll create a new member called loglook. In there I’ll copy ‘zos.mtm2019.public.rexx(loglook)’.
I’ll go back using F3 and execute the script by using the line command ex next to our newly created loglook data set member.
What is the contest system name?
I guess SYS1? But last challenge it said in the output: “Column SYSNAME.1 has the value: S0W1”. So wouldn’t it be S0W1 then?
Revisit the SYSLOG and gather needed information
Aye chef! From anywhere I’ll enter =sd;log. I’ll enter the primary command SYM to list the system symbolics.
The system ID is synonomous with sysname, don’t forget it. I’ll go back using F3. Now, I’ll just enter top to go to the top
And then I’ll enter f z50087 to find log entries made by me. If I don’t find any, I’ll refresh using F5.
I have found some! Now what to do with it?
Modify LOGLOOK REXX code
I have to what?! Kidding! We need to make the following modifications:
- Provide the correct system ID
- Provide a search string which needs to be your ID
Ok the system ID we have remembered from last time and the search string is our IBM id. This should be pretty straight forward then? Let me see.
This part of the code has some variables. Which ones do we need to change? Hmm… I think I know which ones to change. I’ll do it.
Successful execution has records containing:
- log date
- log time
- message text where message text includes your id
Let’s take a look at my P3.OUTPUT(#14).
Looks good! On to Part 3 Challenge 15!