which is better either static call or dynamic call?
and why?

Answer Posted / suresh ramaiyan

Static call:
============
Main program load module will have sub program load module in itself. So when there is a call made to a sub program, it won't go outside of the current load.

Dynamic call:
=============
Main & Sub program will have two different modules. When there is call to a sub program, system will go and search for the load module in the joblib.

Both have advantages.
1. If the sub program is going to be changed oftentimes, then Dynamic call is better.
2. Think that, for one call, system should to the load library and search for sub program module. when it is found, load that into main memory & pass the control to that and run. when that is finished, remove it from main memory. If the sub program is getting called 1 lack times then?........... In this case, Better to use static.

I believe, you understand. Please correct me if I'm wrong.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why occurs cannot be used in 01 level in COBOL?

715


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

631


Write a program that uses move corresponding.

673


What is the difference between comp and comp-3?

696


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

709






How do you define a variable of comp-1 and comp-2?

701


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2730


What are the different open modes available in cobol?

718


What the difference is between continue and next sentence?

657


How do define dynamic array in cobol.

669


) how do u code after getting data?

1580


How do u write test cases?

1634


How you can characterize tables in cobol?

716


Explain the configuration section of a cobol program with examples of syntax.

659


Explain what you understand by passing by value.

698