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


Please Help Members By Posting Answers For Below Questions

What is the Purpose of Pointer in the string?

643


What are all the divisions of a COBOL program?

665


How do you reference the following file formats from cobol programs?

695


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1616


How do u write test cases?

1638






How to use the same COBOL program in Batch and CICS on lines? explain with an example

1914


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

661


What is rmode(24)

682


What is the use of intialize verb?

750


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2060


Can you please let me know the centre name of INS certification in Kolkata.

1717


What is the utilization of copybook in cobol?

657


How do you get the data to code the BMS macro?

1476


how do you reference the esds vsam file formats from cobol programs

634


How to remove 2 duplicate records and copy only one using job control language?

755