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
What are the rules of the move verb?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Differentiate between structured cobol programming and object-oriented cobol programming.
How do get the result of your program directly on your pc?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Have you used comp and comp-3 in your project? And how?
Name the divisions, which are available in a cobol program?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
how do you define single dimensional array and multidimensional array in your cobol?
Name some of the examples of COBOl 11?
HOw can I get the negative sign while deduct high value from low value
What is Pic 9v99 Indicates in COBOL?
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 ?