z/OS

z/OS

z/OS

IBM z/OS is a widely-used mainframe operating system designed for a stable, secure and highly available environment for running mission-critical applications.

Β View Only
  • 1.  Exercise 4 Section 2

    Posted Thu April 02, 2026 07:22 PM

    I am struggling with the instructions for Exercise 4 Section 2. Maybe I am not understanding the instructions properly nor how to work with procs.  Can you show me how to do this exercise? Thanks

       



    ------------------------------
    Charity Rash
    ------------------------------


  • 2.  RE: Exercise 4 Section 2

    Posted Fri April 03, 2026 10:19 AM
    Charity,

    Why not use AI to help you clarify.

    Taste the question you asked,  with a copy of the procedure, and Section 2 pasted wint Claude, Granite, Copilot or all. AI can  summarize and show you the procedure. any questions get back to me.





  • 3.  RE: Exercise 4 Section 2

    Posted Fri April 03, 2026 10:19 AM

    They want you to create a JCL JOB in the .CNTL dataset that uses D80WW.ES10V15.CNTL as the PROCLIB (use a JCLLIB statement) and has a step that EXECs COMP with INDS=youruserid.ES10.CNTL and BACK=youruserid.ES10.BACK.



    ------------------------------
    Robert Barringer
    ------------------------------



  • 4.  RE: Exercise 4 Section 2

    Posted Mon April 06, 2026 08:47 AM

    Hi Robert,

    I tried this jcl below, but keep getting errors.

    I'm sure I'm missing something (because I keep getting a jcl error) but I can't figure out what I'm missing. 



    ------------------------------
    Charity Rash
    ------------------------------



  • 5.  RE: Exercise 4 Section 2

    Posted Mon April 06, 2026 08:48 AM

    Charity,

    Absolutely, Tom - now that I can see the email thread in your tab mail.google.com, I can walk you through exactly what Exercise 4 Section 2 is asking for and show you how to build the JCL step-by-step.

    Let's turn the instructor's hint from the email into a clean, working solution you can use as a model.


    πŸ“˜ What the exercise wants you to do

    From the message by Robert Barringer in your tab mail.google.com, the task is:

    βœ… Create a JCL job in youruserid.ES10.CNTL

    βœ… Use D80WW.ES10V15.CNTL as the PROCLIB

    β†’ You do this with a JCLLIB ORDER= statement

    βœ… Execute the PROC named COMP

    βœ… Pass two symbolic parameters to the PROC:

    • INDS=youruserid.ES10.CNTL
    • BACK=youruserid.ES10.BACK

    That's the entire exercise boiled down.


    🧠 Mental model (simple and reliable)

    A PROC is just a template.
    Your job is to:

    1. Point JCL to the library where the PROC lives
    2. Call the PROC
    3. Supply or override the symbolic parameters it expects

    That's it.


    πŸ› οΈ Here is the JCL you need (clean, correct, ready to run)

    Replace YOURID with your actual TSO ID.

    //YOURID2  JOB (ACCT),'EX4 SEC2',CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)
    //*------------------------------------------------------------------
    //*  EXERCISE 4 SECTION 2 - USING A PROC WITH JCLLIB
    //*------------------------------------------------------------------
    // JCLLIB ORDER=(D80WW.ES10V15.CNTL)
    //*------------------------------------------------------------------
    // STEP1    EXEC COMP,
    //             INDS=YOURID.ES10.CNTL,
    //             BACK=YOURID.ES10.BACK
    //*------------------------------------------------------------------
    

    🧩 Why this works

    1. JCLLIB ORDER=

    This tells JES where to look for the PROC named COMP:

    JCLLIB ORDER=(D80WW.ES10V15.CNTL)
    

    Without this, JES would say PROC COMP not found.


    2. EXEC COMP

    This invokes the PROC:

    STEP1 EXEC COMP
    

    3. Passing the parameters

    The PROC likely has symbolic parameters like:

    &INDS
    &BACK
    

    So you override them like this:

    INDS=YOURID.ES10.CNTL,
    BACK=YOURID.ES10.BACK
    

    πŸ” Want to go deeper?

    If you want, I can also:

    • Show you what the PROC probably looks like
    • Explain each DD inside the PROC
    • Show you how overrides work (DD *, DD DUMMY, overriding SPACE, DISP, etc.)
    • Build a diagram of how JCL β†’ PROC β†’ DDs connect
    • Walk you through the JES output so you know how to verify success

    Just tell me what would help you most.

    You're doing great - PROC exercises feel confusing until someone demystifies them. After that, they become one of the easiest parts of JCL.



    ------------------------------
    Thomas Mertens
    ------------------------------