View previous topic :: View next topic
|
Author |
Message |
sivatechdrive
Active User
Joined: 17 Oct 2004 Posts: 191 Location: hyderabad
|
|
|
|
Hi all
this question may be asked before but plz respond again
Can we call PROC(a cataloged or instream proc) from some other
proc(a cataloged or instream proc),if so how
Thanks
Siva |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Just check with the "z/OS V1R6.0 JCL Reference":
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B640/CCONTENTS
Quote: |
5.3 Nested Procedures
Cataloged and in-stream procedures can invoke other procedures (up to 15 levels of nesting). In a procedure, an EXEC statement can invoke another procedure, which can contain an EXEC statement to invoke another procedure, and so on.
Note that an in-stream procedure cannot be defined within another procedure. The sequence PROC, PROC, PEND, PEND is not valid.
|
Certainly possible, probably not the best idea in reality. |
|
Back to top |
|
|
sivatechdrive
Active User
Joined: 17 Oct 2004 Posts: 191 Location: hyderabad
|
|
|
|
Hi SuperK
Thanks for the valuable reply
i need a small clarification,is nested proc possible in normal s/390
or only with z/os.
Thanks
Siva |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
From the "OS/390 V1R1.0 MVS JCL Reference":
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA1B601/5.3?DT=19960423172918
Quote: |
5.3 Nested Procedures
Cataloged and in-stream procedures can invoke other procedures (up to 15 levels of nesting). In a procedure, an EXEC statement can invoke another procedure, which can contain an EXEC statement to invoke another procedure, and so on.
Note that an in-stream procedure cannot be defined within another procedure. The sequence PROC, PROC, PEND, PEND is not valid.
|
|
|
Back to top |
|
|
|