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
 

 

Max. how many subprograms we can call?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
crrindia

Active User


Joined: 02 Jul 2005
Posts: 124
Location: Gurgaon

PostPosted: Mon Mar 20, 2006 12:09 pm    Post subject: Max. how many subprograms we can call?
Reply with quote

Hi All,
Program A is my main program, and Program A is calling program B, and program B is calling program C, and program C is calling program D, like that how many programs we can call? is there any limit or we can call any number of subprograms?

if the limit is there, what is the limit for batch programs, and what is the limit for online programs.

Thanks!
CrrIndia.
Back to top
View user's profile Send private message

DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Mon Mar 20, 2006 7:39 pm    Post subject: Re: Max. how many subprograms we can call?
Reply with quote

CrrIndia,

There is no absolute limit to the number of subroutines you can call. Each time a subroutine is called a register save area is set up to save the environment of the calling program including the address to return control to. If the subroutine calls another subroutine, another register save area is set up to save that environment. The practical limit to the number of subroutines you can call will be determined by the region size you are running in and the size of the subroutines.

Dave
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 288
Location: Basel, Switzerland

PostPosted: Mon Mar 20, 2006 8:57 pm    Post subject:
Reply with quote

hy CrrIndia,

there is no restriction as long you have enough virtual storage available,
this you can pass in your jcl, by using the REGION parameter.
the rest Dave already mentioned perfectly, before...

martin9
Back to top
View user's profile Send private message
crrindia

Active User


Joined: 02 Jul 2005
Posts: 124
Location: Gurgaon

PostPosted: Tue Mar 21, 2006 5:18 pm    Post subject:
Reply with quote

Hi Dave and Martin, Thank you very much for your replies.

Thanks!
CrrIndia.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am


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