Can a PROC CALL another PROC ? (in both Instream and
Cataloged cases) ?
(i) Can an Instream PROC call other Instream PROC, as
Instream PROCs are also JCL Segments ?
(ii) Can an Instream PROC call a Cataloged PROC ?
(iii) Can a Cataloged PROC HAVE and USE an Inline PROC
inside it ?
Joined: 31 Oct 2006 Posts: 968 Location: Richmond, Virginia
How could I ever test this?
I will offer a clarification, though, Dedicated.
"Call" is a term usually (always?) meaning a transfer of control to another section of code (subroutine, function, paragraph), after which control is returned to the statement after the call.
A JCL "EXEC procname" is not a call, but rather a code (text) substitution (perhaps with symbolics assigned), like a macro.
So, your question is: "Can a proc reference another proc, and if so, just how far can this go?"
Again - easly to test - just make up some procs (they don't have to do anything but ref the next), and see what happens. You might also try a circular reference, but watch out for smoke coming from your screen.