What are differences between Static Call and Dynamic Call?

Answer Posted / iqru

Static Call - 1) Identified by CALL Literal i.e CALL 'PGM1'
USING... 2)Compiler option must be specified as 'NODYNAM'.
3)If the subprogram i.e PGM1 undergoes any change, the main
and sub modules need to be recompiled. 4)submodules needs
to be link edited to the main module. 5) Size of the load
module will be large.

Dynamin Call - 1) Identified by CALL literal with the
module being passed through a variable. i.e CALL WS-PGM1.
2) Compiler option must be specified as 'DYNAMIC'
or 'DYNAM'. 3)If the subprogram which is being called
dynamically undergoes a change , the subprogram is alone
compiled enough to take effect of the changes. Compilation
of main module is not necessary. 4) submodules are picked
up from the load library when the program runs. 5) Size of
the load module will be less.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1876


Why occurs cannot be used in 01 level in COBOL?

905


A table has two indexes defined. Which one will be used by the SEARCH?

1005


Difference between array and sub-script ?

1365


what is the use of outrecord?

1964


Differentiate between structured cobol programming and object-oriented cobol programming.

828


What is the difference between structured cobol programming and object alternativelyiented cobol?

978


What is the difference between comp and comp-3 usage?

856


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2002


When is inspect verb is used in cobol?

905


How you can characterize tables in cobol?

915


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2987


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

1844


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

868


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

1938