COBOL Manual for TNS and TNS/R Programs

Program Compilation
HP COBOL Manual for TNS and TNS/R Programs522555-006
11-116
SHARED
SHARED
SHARED
generates shared code (PIC) for a DLL.
CALL-SHARED
generates shared code (PIC).
NON-SHARED
generates nonshared code (non-PIC).
Note. The COBOL85 compiler does not recognize this directive.
Note. You cannot link PIC and non-PIC object files into a single object file.
Default: NON-SHARED
Placement: Anywhere
Scope: The last SHARED, CALL-SHARED, or NON-SHARED in the compilation
unit applies to the entire compilation unit.
Dependencies:
If RUNNABLE is active, SHARED uses the linker to create a PIC
library file (DLL); otherwise, SHARED creates a PIC linkfile.
Do not use with CALL-SHARED, NON-SHARED, or UL.
References:
CALL-SHARED
NON-SHARED
RUNNABLE
UL
CALL-SHARED
NON-SHARED
VST804.vsd
SHARED