H-Series Application Migration Guide (H06.03+)

User Library Migration Tasks
H-Series Application Migration Guide429855-006
8-2
When the User Library is a DLL
For COBOL programs:
°
Compile with ECOBOL instead of NMCOBOL (Guardian), or ecobol instead of
nmcobol (OSS and PC).
°
On the ECOBOL command line or in the source code, specify either the UL
directive or the SHARED directive and add the ELD directive. (Retain the
RUNNABLE directive).
°
On the ecobol command line (OSS and PC), replace the -Wnonshared flag with
-Wshared and replace the -Wnld flag with -Weld.
For pTAL programs:
°
Compile with EPTAL (Guardian) or eptal (PC) instead of PTAL or ptal.
°
On the EPTAL command line, replace the SRL directive with the SHARED
directive. On the eptal command, replace the -srl flag with the -shared flag.
When the User Library is a DLL
DLLs on TNS/E systems are functionally identical to DLLs on TNS/R systems. No
source changes are required, and the techniques for building a DLL are the same for
both the TNS/R and TNS/E platforms. As with all TNS/R native source code, DLLs
must be recompiled with a TNS/E native compiler to generate Itanium code. They must
then be rebuilt using the TNS/E linker eld. The compiler and linker directives and flags
are unchanged on TNS/E systems.
Specifying a User Library
Associating a user library with a program file is the same for TNS/R native and TNS/E
native user libraries, regardless of whether the TNS/R native user library is an SRL or
a DLL. All directives and flags are unchanged. Only the compiler and linker command
names are changed.
Note. The preceding steps create a DLL in a single step that runs the compiler and the linker.
You can also create DLLs in separate compile and link steps. See the appropriate compiler
manual for details.