Can't use nested procs.  Can nest includes but that is mid 1990s MVS.

On Thu, Sep 9, 2021 at 4:44 AM Peter Vels <peter.v...@gmail.com> wrote:
>
> I wonder if this limitation is your issue...
>
> https://www.ibm.com/docs/en/zos/2.4.0?topic=parameters-backward-references
>
> "The following statements cannot be referenced:
> ...
>
>    - Nested procedure statements"
>
>
> On Thu, 9 Sept 2021 at 18:56, Colin Paice <colinpai...@gmail.com> wrote:
>
> > I have a JCL procedure CCPROC which invokes PROC=EDCCB.
> > PROC=EDCCB has two steps compile and bind.
> > Bind puts the output in SYSLMOD.
> >
> > I would now like to refer the the SYSLMOD data set elsewhere, for example
> > //LIST EXEC PROC=CCPROC
> > //EXEC PGM=MYPROG
> > //STEPLIB DD DSN=*.??.SYSLMOD
> >
> > The doc says **.stepname.procstepname.ddname*
> > *Stepname is the name of this job step or an earlier job step that calls
> > the procedure, procstepname is the name of the procedure step that contains
> > the DD statement, and ddname is the name of the DD statement.*
> > DSN=*.LIST.EDCCB.SYSLMOD, DSN=*.LIST.CCPROC.SYSLMOD and
> > DSN=*.LIST.BIND.SYSLMOD all give a JCL error.
> >
> > Is this possible?    I can do it using symbols, so I don't need a solution
> > - I was just curious.
> >
> > Colin
> >
> > ----------------------------------------------------------------------
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> >
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



-- 
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to