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 cobol coding sheets?

657


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

627


how to refer the data field?

1802


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2052


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

641






What is redefines clause in COBOL?

844


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

654


How do you define a variable of comp-1 and comp-2?

701


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

693


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

817


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8636


Explain the configuration section of a cobol program with examples of syntax.

655


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10574


How do you reference the fixed block file formats from cobol programs

699


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

741