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: 8631
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: 968
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
No new posts CICS web service from DB2 Triggers or... kiranprasad DB2 1 Wed Dec 20, 2017 11:10 am
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
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

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