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 are the different rules to perform a Search?
In which area will you utilize 88 level items in cobol?
How many bytes S(8) comp field occupy and its maximum value?
what is search and searchall?what is the diffrence between them?give an best example?
What is the local-storage section?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Write the code to count the sum of n natural numbers.
What is comp-1 and comp-2?
Explain the configuration section of a cobol program with examples of syntax.
Name some of the examples of COBOl 11?
What are the various section in data division and briefly explain them.
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
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
Discuss about changing dataset name in proc.