COBOL Manual for TNS and TNS/R Programs
Migrating TNS Programs to Native Programs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
33-21
Development and Management Changes
This is not the default. If you run the NMCOBOL or ECOBOL compiler without the
RUNNABLE directive and no compilation errors occur, you can produce a loadfile
by running the appropriate linker separately. If you do this, you must specify these
libraries:
The libraries reside in the active subvolume $SYSTEM.SYSnn. For instructions for
determining the active subvolume, see the documentation.
You must compile your native program with the RUNNABLE directive if you use the
SAVEABEND, NOSAVEABEND, or SUBTYPE directive.
For a complete description of the RUNNABLE directive, see RUNNABLE.
•
SHARED directive
The SHARED directive generates shared code (PIC) for a DLL. See SHARED.
Development and Management Changes
The NMCOBOL and ECOBOL compilers and the native environment do not support
these features of the COBOL85 compiler and the TNS environment. If your program
development or management procedures depend on any of these features, you must
change your procedures.
•
Overriding libraries specified at compile time
In the TNS environment, you can specify libraries at compile time and then
override them at run time. In the native environment, if you specify libraries at
compile time, you cannot override them at run time. If you need to change the
libraries, you must change the source code and recompile it.
•
Manipulating individual procedures and data blocks
In the TNS environment, Binder produces object files; in the native environment,
the nld, ld, or eld utility produces object files. Binder and the nld, ld, or eld
utility have different syntax and operate on different object file types. Binder can
replace individual procedures and data blocks in an object file or build an object file
from individual procedures and data blocks; the nld, ld, or eld utility cannot. The
nld, ld, or eld utility operates on procedures and data blocks, but only in terms of
an entire object file.
Linker Libraries Documentation
nld ZCOBSRL
ZCRESRL
nld Manual
ld ZCOBSRL
ZCRESRL
ld Manual
eld ZCOBDLL
ZCREDLL
eld Manual