Interview Questions

What is the difference between a DYNAMIC and STATIC call in COBOL,

COBOL Interview Questions


(Continued from previous question...)

What is the difference between a DYNAMIC and STATIC call in COBOL,

To correct an earlier answer. All called modules cannot run standalone if they require program variables passed to them via the LINKAGE section. DYNAMICally called modules are those that are not bound with the callling program at link edit time (IEWL for IBM) and so are loaded from the program library (joblib or steplib) associated with the job. For DYNAMIC calling of a module the DYNAM compiler option must be chosen, else the linkage editor will not generate an executable as it will expect u address resolution of all called modules. A STATICally called module is one that is bound with the calling module at link edit, and therefore becomes part of the executable load module.

(Continued on next question...)

Other Interview Questions