GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL

 Print  |  
Question:  Give simple program example for Dynamic link and Dynamic call in COBOL?



August 08, 2009 10:06:17 #2
 kmdeepu   Member Since: August 2009    Total Comments: 1 

RE: Give simple program example for Dynamic link and Dynamic call in COBOL?
 
Usually in COBOL the subroutines are compiled and linked to the load module at the time of compilation and if we are calling the subroutine only a few times, then may not worth keeping in the memory unnecessary. This is known as STATIC CALL. So COBOL facilitates another mechanism called DYNAMIC CALLs to avoid this prob. In dyanamic call, the subroutine is not a component of the main program. It is compiled separately and is only moved to main memory at the time of CALLing. Hence it saves memory and overhead.
     

 

Back To Question