Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 962
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. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts "DFSRRC00 vs IKJEFT01" for ... arunsoods All Other Mainframe Topics 5 Fri Aug 12, 2016 9:54 pm
No new posts How to get the program name of callin... pkmurali COBOL Programming 8 Mon Aug 01, 2016 3:36 am
No new posts Calling Cobol DB2 program from a cobo... nkjain87 DB2 2 Thu Jul 21, 2016 5:12 pm
No new posts New PROC not reflecting in prod even ... Musab Ahmed CA Products 9 Tue Mar 15, 2016 12:45 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us