What is Static and Dynamic linking?
COBOL Interview Questions
(Continued from previous question...)
What is Static and Dynamic linking?
In static linking, the called subroutine is link-edited into the calling program, while in dynamic linking, the subroutine and the main program will exist as separate load modules. You choose static/dynamic linking by choosing either the DYNAM or NODYNAM link edit option. (Even if you choose NODYNAM, a CALL identifier (as opposed to a CALL literal), will translate to a DYNAMIC call). A staticall called subroutine will not be in its intial state the next time it is called unless you explicity use INITIAL or you do a CANCEL. a dynamically called routine will always be in its intial state.
(Continued on next question...)
Other Interview Questions
|