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

what is search and searchall?what is the diffrence between them?give an best example?

5558


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

735


What is perform what is varying?

709


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

757


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

667






What are the pertinent COBOL commands?

2623


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

998


how to refer the data field?

1812


What are the various section in data division and briefly explain them.

698


What are the access modes of START statement?

719


What are the different rules for performing sort operation?

761


how do you reference the variable unblock file formats from cobol programs

748


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

700


What are 77 levels used for?

659


What is the difference between external and global variables in COBOL?

813