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

Max. how many subprograms we can call?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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: 290
Location: Basel, Switzerland

PostPosted: Mon Mar 20, 2006 8:57 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Batch call online program, EXCI task ... CICS 3
No new posts CSQBGET - Call giving completion code... COBOL Programming 3
No new posts CICS DPL call CICS 6
Search our Forums:

Back to Top