What are differences between Static Call and Dynamic Call?
Answer Posted / sivakumar sekhrannair
If a program is called statically then its load module is
combined with mainprograms load module.
In dynamically called program the load module is
independent of the main program's load module.
Why it's happening?
The answer is
In statically called program the program name is given
inside the procedure division as a value not a variable.
The value given inside the procedure division will be
resolved and changed to load module language during
compilation.
But for dynamically called program, the program name is
given as a variable. The value passed to the variable
through file or through working storage section is resloved
only during runtime.
So when we compile the dynamically called subprogram
1)First we compile the subprogram that creates its own load
module.
2)then we compile the main program. During main program
compilation it subrogram name will be taken as a value of a
variable. so the subprogram load module will not be
combined with the main program
3) when we run the main program(which calls the dynmically
called subprogram) the main program treates the subprogram
name as a value and the subprogram is called now.
if anyone have any corrections please let me know in
shivanskn@yahoo.co.in
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
how can i see junk values in dclgen or in hostvariable of comp ?
What are the pertinent COBOL
What is the usage of comp fields in cobol?
What kind of error is trapped by on size error option?
what happens if parmparameter passes zero bytes to the program
What are the different types of condition in cobol and write their forms.
Which Search verb is equivalent to PERFORM…VARYING?
In COBOL programming, what is PERFORM? What is VARYING?
What is the difference between Call and a Link?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
When is inspect verb is used in cobol?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is cobol?
Write the code to count the sum of n natural numbers.
What is the local-storage section?