What are differences between Static Call and Dynamic Call?
Answer Posted / rajesh
There are lot of differences. Some of them are
1.If you call the subprogram by hardcoding it into the
program it is known as static program whereas calling the
subprogram by means of a working storage variable is known
as dynamic call.
Static call: CALL ''SUBPRG1''
Dynamic call: CALL WS-SPRGNAME
2.If you want to execute the modules with static call, the
load module will collectively contain the loadlibs of all
the modules involved.(Both calling and the called).
In case of Dynamic the loadlib contains the loadmodule of
the calling module alone.
3.If u want to call programs depending on some condition
(ie not every time with calling pogram must use Dynamic
call).If subprograms need to be called for everytime with
callling programs must use static call.
4.The module involving static call takes more time in
compilation process whereas dynamic takes more time to run.
These are some of the major differences.Please let me know
if i m wrong anywhere.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is rmode(24)
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
Define static linking and dynamic linking.
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is the LINKAGE SECTION used in COBOL?
What is redefines clause in COBOL?
Which mode is used to operate the sequential file?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is cobol?
How many sections are there in data division in COBOL?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
Have you used comp and comp-3 in your project? And how?