COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
SHARED
SHARED
generates shared code (PIC) for a DLL.
CALL-SHARED
generates shared code (PIC).
NON-SHARED
is ignored.
CALL-SHAREDDefault:
AnywherePlacement:
The last SHARED or CALL-SHARED in the compilation unit applies to the entire
compilation unit.
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 or UL.
References:
• CALL-SHARED
• RUNNABLE
• UL
If you put an HP COBOL program in a DLL, you must export the program name when you build
the DLL; otherwise, other programs cannot call the HP COBOL program. To export the HP COBOL
program name, use one of these ld commands:
ld CommandsEnvironment
Guardian eld (-export program-name )
or
eld (-export_all)
OSS or PC -Weld="-export program-name "
or
-Weld="-export_all"
SHOWCOPY and NOSHOWCOPY
SHOWCOPY
displays COPY statements as comments in the listing before the copied text.
568 Program Compilation










