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
When is inspect verb is used in cobol?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is the difference between binary search and sequential search?
How do we get current date from system with century in COBOL?
Can you please let me know the centre name of INS certification in Kolkata.
Differentiate between structured cobol programming and object-oriented cobol programming.
How to remove 2 duplicate records and copy only one using job control language?
What are literals?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What are the different rules for performing sort operation?
What kind of error is trapped by on size error option?
What is link edit in cobol?
Discuss about changing dataset name in proc.
What is the difference between comp and comp-3 usage?