GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 74 of 162    Print  
what is the difference between static call and dynamic call?

  
Total Answers and Comments: 5 Last Update: November 13, 2008     Asked by: russal 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 11, 2006 16:23:55   #1  
techie        

RE: what is the difference between static call and dyn...
Static calls refer to calls made to subprograms that was link-edited to the main program at compile time. That is the subprogram's object code is part of the main programs object code. This is established on compile time with the NODYNAM compiler option.Dynamic calls refer to calls made to programs with separate object code from the main program. This is established on compile time with the DYNAM compiler option.Subprogram called in STATIC mode will always contain values from previous calls if the INITIAL keyword was not coded in the Program-ID declaration in the subprogram's IDENTIFICATION DIVISION. But you can reset the values by coding CANCEL from the main program.Subprogram called in DYNAMIC mode will always be in initial state.Hope this helps.
 
Is this answer useful? Yes | No
September 12, 2006 01:16:24   #2  
Rajesh kumar Singh        

what is the difference between static call and dyn...

In static call actual and formal parameters share same memory location but in dynamic call they uses different memory locations.


 
Is this answer useful? Yes | No
October 02, 2006 04:46:55   #3  
manasa        

RE: what is the difference between static call and dyn...
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.
 
Is this answer useful? Yes | No
March 05, 2008 04:12:53   #4  
hemamlec Member Since: March 2008   Contribution: 1    

RE: what is the difference between static call and dynamic call?
If we do any chnages to sub-pgm need to compile both main and sub pgms in STATIC call where as in DYNAMIC call need to compile sub-pgm ALONE
Cheers
Hema

 
Is this answer useful? Yes | No
November 11, 2008 14:22:13   #5  
haiardhan Member Since: July 2008   Contribution: 5    

RE: what is the difference between static call and dynamic call?
static call :the subprogram will call like 'subpgmname'
dynamic call : the sub program will be calling with variable.
ex :01 spgm pic x(5).
move subpgm to wspgm
call spgm
static :call a single program
dynamic : we can call many programs
here we will maintain seperate load module
if there were any changes are in sub program need not to recompile mainpgm and subpgm subpgm compilation is enough
static: if there were any changes in sub pgm.( compile) both subpgm&main program need to be re recompile because both load modules will be in single load library so subpgm load module should be linkedited with mainpgm-load module.
dynamic loadmodule will pick up at runtime only
static------>compile......ubload+linkload....run
dynamic--->compile...................................run

 
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