Getting Comfy With Data Sets and Members: Files For Miles
Getting Comfy With Data Sets and Members: Files For Miles
4. SWITCH THE HLQ FILTER 5. FIND THE DATA SET 6. COPY AND PASTE
Use the HLQ filter again and set it to MTM2020.PUBLIC.* Inspect the data set attributes of the data sets you find in here
Right-click on the PDSPART1 data set member and select
This is where a lot of the data sets we’ve pre-made for you and find the one with the ‘vols’ attribute of VPWRKZ. This means
Copy. Then right-click on your WORK data set, which you
reside. You’ll be copying a lot of content from here, so if you that the data for it is stored on a storage device with the name of
favorited earlier, and select Paste. When prompted to give it a
find yourself using any of these data sets repeatedly (like VPWRKZ.
name, give it the same name it had before, PDSPART1.
MTM2020.PUBLIC.INPUT) you may want to mark those as
favorites. You may find other data on this volume, but there’s only one
Do the same for PDSPART2, giving it the name PDSPART2.
MTM2020.PUBLIC data set on it. Within this data set, you should
find a few other members, which you’ll use in the upcoming
Finally, look in the MTM2020.PUBLIC.JCL data set for
steps.
PDS1CCAT. Copy that into your WORK data set. When you are
done, you should have something similar to the screenshot in
Step 7 in your WORK data set.
“THIS SEEMS KIND OF SIMPLE. AM I MISSING SOMETHING?
We’re purposely starting out with the basics of data sets and members because it’s very easy to
make inaccurate assumptions about them which will wind up hurting you later on. While they’re
represented as folders and files in VS Code, a data set is actually a file with a record organization
to it.
Some data sets contain sequential data, meaning the records in them are one right after the other,
like a big list. Others have an index of data which points to individual records, which is what we’re
using here. These are called Partitioned Data Sets, hence the PDS. There are also application- Want to talk? Join our Slack Tweet about it!
specific data sets called VSAM. Each type is optimized to perform best for its specific purpose. ibm.biz/mtm_slack #MasterTheMainframe
PDS1 Getting comfy with Data Sets and Members
7. RUN THAT JOB 8. CHECK OUT THE OUTPUT 9. GIVE IT A NEW NAME
Click on the newly-created member, PDS1OUT. Was it what
Right-click on the PDS1CCAT member from your own you expected in Step 6? The PDS1CCAT job used those two Right-click on the PDS1OUT member and select Rename. Give
ZXXXXX.WORK data set (not the MTM2020 one) and select members as input and concatenated, or joined, them it the name of RECIPE. This will make it easier to find later, and
“Submit Job”. This will run the code within the member. This together. is required for the system to mark this challenge as complete.
may take a few seconds.
Now that you know the purpose of the job you ran, now might That’s it! If you’ve got a ZXXXXX.WORK(RECIPE) with
After a few moments, collapse the WORK folder using the be a good time to review it and see how that code found your instructions in it for making some tasty vegetarian tacos, go
small arrow to the left of it, and then re-expand it. This will data set members and took the steps necessary to build the into MTM2020.PUBLIC.JCL and look for a member named CHK.
cause VS Code to refresh the contents of the PDS, where you output. Then right-click on it and select "Submit Job" to send it for
should see a brand new member created, called PDS1OUT. validation.