What are differences between Static Call and Dynamic Call?
Answer Posted / iqru
Static Call - 1) Identified by CALL Literal i.e CALL 'PGM1'
USING... 2)Compiler option must be specified as 'NODYNAM'.
3)If the subprogram i.e PGM1 undergoes any change, the main
and sub modules need to be recompiled. 4)submodules needs
to be link edited to the main module. 5) Size of the load
module will be large.
Dynamin Call - 1) Identified by CALL literal with the
module being passed through a variable. i.e CALL WS-PGM1.
2) Compiler option must be specified as 'DYNAMIC'
or 'DYNAM'. 3)If the subprogram which is being called
dynamically undergoes a change , the subprogram is alone
compiled enough to take effect of the changes. Compilation
of main module is not necessary. 4) submodules are picked
up from the load library when the program runs. 5) Size of
the load module will be less.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Define static linking and dynamic linking.
How to know whether the module is dynamical or statistical?
Name the sections present in data division.
What is the difference between next sentence and continue in cobol programing language?
For rewrite, why is it mandatory that file needs to be opened?
i want a program using by if, evaluate , string, unstring, perform, occurs?
Can we change the password using ALTER? anyone tried and changed?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
How do we get current date from system with century in COBOL?
how do you define single dimensional array and multidimensional array in your cobol?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Write a program that uses move corresponding.
Mention the guidelines to write a structured cobol program?
What is the difference between PIC 9.99 and 9v99 in COBOL?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?