IBM MTM: Part Two – Challenge #15

I’m at the milestone! I’m at the last part two challenge. This is a challenge that requires me to dig up all my previously acquired mainframe knowledge to solve this challenge. I need to navigate 4 different types of data sources, find a number that’s encoded in one of three encoding types and calculate the sum of those numbers.

At first I thought I needed to write code that would access each data source and get that number but I just need to physically read it and write it down on a notepad or something.

Number Hunt

IBM Master the Mainframe Part Two – Challenge #15

The 4 data sources include:

  1. Sequential Data Set Name
  2. Partitioned Data Set Member Name
  3. Unix File Name
  4. DB2 Table

Each number may be in 1 of 3 formats:

  1. EBCDIC
  2. ASCII
  3. Packed Decimal

So now you know. I won’t be given the data format in which the data is in. I’ll have to figure it out myself when I see it. I’ll post screenshots of my progression but I’ll blur my solutions. Sorry for that! Just remember, if I can do it… you can too!

I need to sum the 8 numbers found in the specified record and column positions from the following data sources:

Data Set Name Z#####.HUNT1
  #1 Record 14 Column 35 to 38
  #2 Record 18 Column 78 to 80

Data Set Name Z#####.HUNT2 Member Name FRED
  #3 Record 7 Column 1 to 3
  #4 Record 9 Column 47 to 49

Unix File Name /z/z#####/dennis
  #5 Record 6 Column 42 to 45
  #6 Record 11 Column 31 to 33

DB2 Table IBMUSER.EMP
  #7 Column PHONENO where lastname is YAMAMOTO
  #8 Column BONUS where lastname is YAMAMOTO

Then I need replace 0000 on the last line in Z#####.JCL(P2DONE) and execute it.

Z#####.HUNT1

Record 14 Column 35 to 38 and Record 18 column 78 to 80 contain a number. The number at record 14 is invisible? Let’s put hex on as we did in Challenge #08. Now we can see EBCDIC characters.

NUMBERS

These characters have to be decoded to a number.

If I’m right, those characters appear to be ASCII character bytes. These are really easy to decode. Now on to the next line, these numbers are not visible. They are more to the right. Could’ve guessed, they’re in a different format.

I have the numbers, do you?

Z#####.HUNT2

Inside member name FRED we need to find numbers at Record 7 Column 1 to 3 and Record 9 column 47 to 49. All data should be visible without shifting.

Observe the red marks. I’m not sure what Record 9 Column 47 to 49 is supposed to be. But Record 7 is easy, same as previous hunt.

I found out what Record 9 was, it’s a tricky one. Goodluck!

/z/z#####/dennis

Remember Challenge #13? This is basically the same. Remember, lowercase!

Again everything should be visible. Now just hex on and let’s decode some characters! The first one at column 6 is easy. Column 11 is also easy, nothing we haven’t seen yet!

IBMUSER.EMP

Let’s exit ovms and write some SQL. Again some DB2 interaction, finally! Same as Challenge #14.

I wrote the select where statement and got this result. Sorry for the censor! Now I have all the numbers 🙂

Conclusion

This was fun and challenging. Let’s edit JCL(P2DONE) and fill in the numbers!

Execute! JOB P2DONE(JOB03959) SUBMITTED

Successful completion of P2DONE writes the answer to P2.OUTPUT(#15) and deletes data sources.

The data sets are gone! I got the number right!

Completing Part 2

I’m really curious, did I make any mistakes? Did I delete someone else’s database? Did I crash IBM’s server with my select * query? Let’s run TSO SCOREP2 and see how I did!

Oh my god! Let’s check STATUS!

YES!! I am now officially a part 2 finisher!

I’ve gained experience in:

  • TN3270 Emulator
  • TSO, Time Sharing Option
  • ISPF, Interactive Productivity Facility
  • ISPF Editor
  • SDSF, System Display and Search Facility
  • Hexadecimal, EBCDIC, ASCII, and Packed Decimal
  • JCL, Job Control Language
  • Sequential and Partitioned Data Sets
  • VSAM Data Sets
  • IDCAMS Utility Program
  • Unix System Services and Unix Files
  • DB2 SQL

What a list I say!

Part 3

We need to have a chat about Part 3. I was told that I can’t publish part 3 solutions. And I won’t. I’ll try to write interesting blogs about my route through part 3, post some snippets but stay vague enough that you’d still have to do the hard work if you’re participating in IBM’s MTM challenge.

I’d like to thank everyone for checking out out my blog this far. I’ve been blogging for about a month and it’s been keeping me motivated for just about everything. I quit programming after work before I was doing the MTM challenge. Now I’m all up and running again, staying healthy and motivated.

What’s been keeping you running, healthy and motivated?

Share this:

2 thoughts on “IBM MTM: Part Two – Challenge #15

Leave a Reply to Jaida Cancel reply

Your email address will not be published.