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

What is the usage of comp fields in cobol?

660


What is report-item in COBOL?

711


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


What is the compute verb? How is it used?

663


Difference between array and sub-script ?

1169






What is the difference between structured cobol programming and object alternativelyiented cobol programming?

711


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1024


What is the problem of ordered sequential files access?

704


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

710


What is the Purpose of POINTER Phrase in STRING command in COBOL?

723


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

751


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


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

737


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

712


how do you reference the rrds file formats from cobol programs

802