Hi there!
Today we’re going to learn a bit more about data sets. This will be a somewhat longer challenge, but hey, what has to be done has to be done. That’s a fully correct English sentence.
Data Sets
IBM Master the Mainframe Part Two – Challenge #07
Create a data set using JCL DD parameter provided by local storage administrator
Again, for starters we need to allocate a new data set using a series of commands. I will list them here for quick completion.
- tso submit ‘zos.public.jcl(p2ch7a)’ as primary command.
- a as jobname character.
- sd as primary command.
- prefix ; owner Z50087; st; as primary command, change my ID it to your ID.
- f3 to return to the ISPF Primary Option Menu.
View attributes of newly created data set
- dslist p2ch7.seq1 as primary command.
- v as line command next to the DDNAME, press enter if the VIEW ENTRY PANEL pops up.
Now we see the following data. Make a note of the LRECL, RECFM, and DSORG values. The values are needed to complete the challenge.
I took note of these values, did you?
Modify JCL to create a sequential data set using attributes you specify
Again we need a series of commands to get to the JCL we need to modify.
- dslist JCL as primary command.
- e as line command next to the data set name.
- s p2ch7b as primary command to create a new member inside JCL.
- copy ‘zos.public.jcl(p2ch7b)’ as primary command when you’re inside P2CH7B.
Inside the JCL above we need to change several things. In my case I need to change the following.
- ###### to VPWRKA
- LRECL=80
- RECFM=FB
- DSORG=PS
I have made the changes, I have also highlighted them on the screenshot above. Submit it using sub ; =sd ; st and if it asks for a jobname character choose b.
Complete the challenge by creating member #07 into your P2.OUTPUT data set
Again a series of commands.
- tso submit ‘zos.public.jcl(p2ch7c)’ as primary command.
- c as jobname character.
- dslist p2.output as primary command.
- v as line command next to P2.OUTPUT, press enter if the view panel comes up.
- s as line command next to member #07 to see if the output is there.
P2CH7.SEQ1 and P2CH7.SEQ2 are present in this list. This means I have completed the challenge correctly!
Hello Kevin, could you please help me how to fix this issue my dslist JCL data set name “p2ch7a” is not appearing inside JCL. I have followed all the steps, unfortunately I don’t know what I missed. Thank you!
Best regards,
xxx
Hi Antonio
Kisses back, xxx.
Kind regards,
– Kevin
BOA TARDE KEVIN.
POR QUE VOCE ALTEROU OS VALORES ###### para VPWRKA ???
EU TERIA QUE ALTERAR PARA O MESMO ???
OBRIGADO PELA ATENÇÃO
Willian C Martins.
Hi Willian
I don’t speak Portuguese and Google translate isn’t helping me that well. Are you asking me why I changed some values? You have to do the same.
Kind regards,
– Kevin
Hi kevin, I am getting this error after entering ‘a’ when prompted for jobname character.
12.50.05 JOB03463 $HASP165 Z11889A ENDED AT SVSCJES2 – JCL ERROR CN(INTERNAL)
And after entering SDSF commands “prefix ; owner your ID ; st ” my JoBName and every thing is empty like this. please help.
SDSF STATUS DISPLAY ALL CLASSES LINE 0-0 (0)
COMMAND INPUT ===> SCROLL ===> PAGE
NP JOBNAME JobID Owner Prty Queue C Pos SAff ASys Status
***
Hi Anonymous
I would need more information on the error you’re getting. Can you elaborate? Any logs or screenshots?
Kind regards,
– Kevin