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

Name the divisions, which are available in a cobol program?

912


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1016


What is the difference between perform … with test after and perform … with test before?

1131


How do u write test cases?

1806


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1870






What are the different rules of SORT operation?

884


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)?

834


In COBOL programming, what is PERFORM? What is VARYING?

851


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

943


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2275


What is amode(31)

897


how do you reference the variable unblock file formats from cobol programs

987


How do you get the data to code the BMS macro?

1679


What is the difference between a binary search and a sequential search what are the pertinent cobol?

910


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

926