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 is the usage of comp fields in cobol?
What is report-item in COBOL?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is the compute verb? How is it used?
Difference between array and sub-script ?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is the problem of ordered sequential files access?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
how do you reference the variable unblock file formats from cobol programs
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is the difference between PIC 9.99 and 9v99 in COBOL?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
how do you reference the rrds file formats from cobol programs