What is the difference between static and dynamic call?

Editorial / Best Answer

nasser_tice  

  • Member Since Dec-2009 | Dec 15th, 2009


Static Call


A call to the subprogram at the time to compilation.
Static call uses more CPU time, memory required is large.
Improves performance
Evertime a change is made in the subprogram, all the impacted programs should be re-link-edited.
Caller and called are one load module.
A static call is specified withe a CALL LITERAL, and the program is compiled with COBOL NODYNAM option.

Dynamjc Call

A call to the subprogram at the time of exectution (run time) is called Dynamic call.
Dynamic call uses less CPU time, memory required can be less.
Degrades performance.
Seperate load modules and therefore sharable by multiple callers.
Only one copy.
Caller and called programs are link edited as seperate load modules.
A dynamic call is specified using a CALL 'VARIABLE' regradless of the cobol dynam or nodynam option.

Showing Answers 1 - 2 of 2 Answers

JOHN

  • Jan 23rd, 2006
 

In the static call the load module of the called pgm is linked with the calling pgm. While in case of dynamic call the 2 load modules stay separately.

In case of dynamic call the called pg can be used by many other pgms.

  Was this answer useful?  Yes

Minoo

  • Mar 10th, 2006
 

Static call, Identified by call literal eg: call 'pgm1'

               SUb-modules are link edited with the main module

               If the sub-pgm undergoes any changes,both the sub and main    

               pgms need to be recompiled.

Dynamic call, Identified by a call variable eg: call ws-pgm

                   sub-modules are picked up during the run time from the load

                   library.

                  If the sub-pgm undergoes any changes it is sufficient to recompile the sub-pgm alone.

crackball

  • May 31st, 2007
 

In a static call, the call is done using a literal. Compiler option is NODYNAM
In a dynamic call, the call is done using variable. Compiler option is DYNAM

  Was this answer useful?  Yes

nasser_tice

  • Dec 15th, 2009
 

Static Call


A call to the subprogram at the time to compilation.
Static call uses more CPU time, memory required is large.
Improves performance
Evertime a change is made in the subprogram, all the impacted programs should be re-link-edited.
Caller and called are one load module.
A static call is specified withe a CALL LITERAL, and the program is compiled with COBOL NODYNAM option.

Dynamjc Call

A call to the subprogram at the time of exectution (run time) is called Dynamic call.
Dynamic call uses less CPU time, memory required can be less.
Degrades performance.
Seperate load modules and therefore sharable by multiple callers.
Only one copy.
Caller and called programs are link edited as seperate load modules.
A dynamic call is specified using a CALL 'VARIABLE' regradless of the cobol dynam or nodynam option.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions