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 the utilization of copybook in cobol? Could we utilize a similar copybook?
Write the code to count the sum of n natural numbers.
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What is the difference between goback, stop run and exit program in cobol?
Explain what you understand by passing by value.
In COBOL, what is the different between index and subscript?
What are the different types of condition in cobol and write their forms.
How many sections are there in data division in COBOL?
explain sorting techniques in cobol program?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
how can i see junk values in dclgen or in hostvariable of comp ?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
How to print 10 to 1 if the input have only 10 digit number?
how to convert the recors form vsam file to db2 table tru file aid
What is rmode(any) ?