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


Please Help Members By Posting Answers For Below Questions

What are the different rules of SORT operation?

698


Why did you choose to work with ibm mainframe cobol programming?

631


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

1715


i want a program using by if, evaluate , string, unstring, perform, occurs?

4059


What are the different types of condition in cobol and write their forms.

658






What is the usage of comp fields in cobol?

658


How many bytes S(8) comp field occupy and its maximum value?

1630


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1024


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

1914


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

720


What is the compute verb? How is it used?

660


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

715


Write a program to enter and display the names of students in a class using the occurs clause.

652


Write a cobol program making use of the redefine clause.

731


What kind of error is trapped by on size error option?

740