tags:

views:

142

answers:

2

How can I tell if a module is being called dynamically or statically?

A: 

The ONLY way is to look at the output of the linkage editor (IEWL) or the load module itself. If the module is being called DYNAMICALLY then it will not exist in the main module, if it is being called STATICALLY then it will be seen in the load module. Calling a working storage variable, containing a program name, does not make a DYNAMIC call. This type of calling is known as IMPLICITE calling as the name of the module is implied by the contents of the working storage variable. Calling a program name literal.

Kombucha
A: 

Calling a working storage variable, containing a program name, does not make a DYNAMIC call.

Yes it does. Call variablename is always DYNAMIC. Call 'literal' is dynamic or static according to the DYNAM/NODYNAM compiler option.

Caveat: This applies for IBM mainframe COBOL and I believe it is also part of the standard. It may not apply to other non-standard versions of COBOL.