IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Calling a PROC from another PROC


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Dedicated

New User


Joined: 25 Apr 2010
Posts: 2
Location: India

PostPosted: Tue Apr 27, 2010 8:06 pm
Reply with quote

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 ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Apr 27, 2010 8:16 pm
Reply with quote

These questions are all basic.
Have you read any of the manuals, and if you have not, please read them before posting.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Tue Apr 27, 2010 11:23 pm
Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts calling a JCl inside a JCL JCL & VSAM 3
No new posts Calling IEHPROGM from REXX CLIST & REXX 7
Search our Forums:

Back to Top