GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 77 of 162    Print  
What is the difference between static & dynamic call?
in the case of static call the mainprogram and subpgms r loaded into the mainmemory initially.in the case of dynamic call only the mainpgm is loaded first and the subpgm is loaded only when a call to it is made.so the memory utilization is good in dynamic call.


  
Total Answers and Comments: 5 Last Update: January 08, 2008     Asked by: manasa thomas 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 03, 2006 03:48:57   #1  
manoj        

RE: wht is the diff between static & dynamic call

Static call takes the same memory location for actual and formal parameter. but dynamic call takes different memory locations for parameters.

thanks

manoj


 
Is this answer useful? Yes | No
November 27, 2006 00:34:58   #2  
susi        

RE: wht is the diff between static & dynamic call
The Dynamic call also allows to enhance the programming by providing the subpgm's name at runtime.
 
Is this answer useful? Yes | No
December 04, 2006 16:36:20   #3  
Brett Phipps        

RE: What is the difference between static & dynamic ca...

You are right but you are missing the reason why this occurs. When you are compiling this program you set the dynamic versus static call setting. If the program is compiled statically the subprogram becomes a part of the load. Whereas if the program is compiled with the program dynamically then the subprogram will not be a part of main programs load. It only gets loaded into memory when the main program makes the call to it.


 
Is this answer useful? Yes | No
December 19, 2006 08:59:28   #4  
AJAY        

seperate load modules.....
HI Buddy..... In case of STATIC CALL t load module of both t main prog and t sub prog wil b combined together.... in case of DYNAMIC CALL t load module of main and sub prog are both seperate. suppose that if u make any change in ur sub prog then in case of DYNAMIC CALL u nee not recompile your MAIN prog once again. only t sub prog needs to b recompiled...... wher as in case of STATIC CALL u need to recompile both t main and t sub prog Hope u undestood... reply back for any queries Regards AJAY
 
Is this answer useful? Yes | No
January 08, 2008 12:34:48   #5  
lfrank Member Since: January 2008   Contribution: 9    

RE: What is the difference between static & dynamic call?
[See Question #3]
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape