Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Calling a PROC from another PROC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Calling a PROC from another PROC
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: 8593
Location: Back in jolly old England

PostPosted: Tue Apr 27, 2010 8:16 pm    Post subject:
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

Active Member


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

PostPosted: Tue Apr 27, 2010 11:23 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Calling CLIST through job and REXX Sahasra K CLIST & REXX 19 Tue Aug 01, 2017 10:25 am
No new posts REXX to view the PGM or PROC jackzhang75 CLIST & REXX 11 Tue Jun 20, 2017 1:20 am
No new posts Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us