IBM MTM 2019: Part Two – Challenge #12

300 readers a day keep the doctor away!

I took a 5 day break from blogging but don’t worry. They only send out the badges of part 2 on the 20th of September. There’s still four days to finish part 2 in time.

Edit VSAM using File Manager

IBM Master the Mainframe 2019 Part Two – Challenge #12

I might have made a mistake in challenge #11 of part 2. Please forgive me 🙂 It’s a learning blog 🙂 Let me add a few more smileys to make it right 🙂 🙂

If you have only 4 lines in VSAM.ESDS then you need to go to PDS.DATA and make a new member called PACKED using s PACKED. Then copy ‘zos.mtm2019.public.shared.data(packed)’ into it. After that, edit Z######.JCL(IDCAMS) and change 000013 to PDS.DATA(PACKED) and sub ; =sd ; st. If it doesn’t work, then please do challenge 11 again.

How to open the File Manager

From the ISPF Primary Option Menu type F.2 and press enter.

Use File Manager to Identify and Modify Packed Decimal in a VSAM data set

Let’s edit VSAM.ESDS data set using the File Manager.

I now am in my VSAM.ESDS file. We need to change the File Manager Editor Format setting from CHAR to HEX.

Change the Format to HEX and press enter. Then enter the line command cols at 000009 and 000012. Next up we need to change a few things:

  1. Change packed decimal positive 4096 to positive 2048
  2. Change packed decimal negative 256 to negative 128

I have changed 04096A to 02048A and 256B to 128B. Let’s enter the primary command top and let’s prepare to copy the output to P2.OUTPUT(#12).

I have entered the line command c12 at line 000001 and the primary command rep p2.output(#12).  You should see Member #12 replaced in the upper right corner!

Let me see if I did it right.

Challenge #12 is correct! Nice!

18 thoughts on “IBM MTM 2019: Part Two – Challenge #12

  1. Hi Kevin,
    This is a challenge easy once you know how to change things in the editor and remember how to create the BCD numbers!
    Thanks
    Georges

  2. Can you kindly put a snapshot of output #12?
    Because when I type the “rep p2.output(#12)” command, it say Member #12 replaced .
    I have all 12 records.
    And I completed both challenge 8 and 11.

    1. Hi Mig

      So it says Member #12 replaced? Do you have any other error? Just like the others, I would put c99 instead of c12 to be sure you copy everything.

      I can deliver a snapshot in only a few hours.

      Kind regards,
      – Kevin

      1. When I go into my output #12, this is my output:
        Packed Decimal format
        Sign digit is positive of negative
        + – + – + +
        . . . . . .
        The number below is 2048+
        ..¦

        The number below is 128-
        .,
        I already typed cols in 9 and 12, and then c12 (c99) in 000001.
        And the rep p2.output(#12) command.
        Do I need to change a hexadecimal?

      2. I finally figure it out. I didn’t change the Hexadecimal from 04096A to 02048A and 256B to 128B. Because I read the Hexadecimal in a straight line, instead of rows. And c12 worked. Thanks for your blog! I finally complete all fifteen challenges.

      3. Mine too says “Member #12 replaced” when I enter rep p2.output(#12) at command.

        I am not getting 2096 and 128 within my p2.output(#12). See screen shot. Am I missing something. I have tried this several times now.

        https://prnt.sc/pmtk20

    1. I have the same problem. Z#####.STATUS says “incorrect”.
      And my Z#####.P2.OUTPUT member name #12 only contain 11 records instead of 12.
      Line 12 is missing, but I don’t know why

      1. Hi Anonymous,

        Please take a good look at challenge #11 and challenge #08. You need 12 records. I only had 4 records at the time I wrote these blogs and had to do some things all over again. See my notes in the mentioned blogs.

        Kind regards
        – Kevin

        1. I had the same issue on challenge #12. Only 11 records instead of 12. So I use c13 instead of c12 at line 000001 and done! I don’t know why c12 doesn’t work.

Leave a Reply

Your email address will not be published. Name, email and website not required.