View previous topic :: View next topic
|
Author |
Message |
shri_shant
New User
Joined: 26 Oct 2005 Posts: 16
|
|
|
|
Can we call instream procedure inside catalog procedure? if yes how? |
|
Back to top |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
Does this answer your question:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B660/5.3?DT=20050713232151#HDRNESTP
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
I don't know if you can or not. But it's easy enough to test:
//j job ...
//isproc proc
.
.
.
pend
s2 exec catproc
In catproc put an exec stmt for isproc and see what happens.
I don't know if this is what you meant, but it IS what you said. |
|
Back to top |
|
|
|