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

When is inspect verb is used in cobol?

936


What is the difference between PIC 9.99 and 9v99 in COBOL?

996


What is the difference between binary search and sequential search?

870


How do we get current date from system with century in COBOL?

1085


Can you please let me know the centre name of INS certification in Kolkata.

1958


Differentiate between structured cobol programming and object-oriented cobol programming.

854


How to remove 2 duplicate records and copy only one using job control language?

992


What are literals?

873


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 ?

2098


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2200


What are the different rules for performing sort operation?

987


What kind of error is trapped by on size error option?

973


What is link edit in cobol?

953


Discuss about changing dataset name in proc.

971


What is the difference between comp and comp-3 usage?

885