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
Can we redefine the field of x(200) to less than 200?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
how do you reference the ksds vsam file formats from cobol programs
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Write some characteristics of cobol as means of business language.
Are you comfortable in cobol or jcl?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
what is the use of outrecord?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
In COBOL, what is the different between index and subscript?
how to move the records from file to array table. give with code example
How do get the result of your program directly on your pc?
What is rmode(24)
what is search and searchall?what is the diffrence between them?give an best example?