SQL Supplement for H-Series RVUs
SQL/MP Programming Manual for COBOL
HP NonStop SQL Supplement for H-Series RVUs—529446-005
1-35
Binding and Linking
The eld Utility
The process of linking by the eld utility applies only to native TNS/E objects created
by the ECOBOL compiler (or by the ecobol utility in the OSS environment).
If you specify the RUNNABLE directive when compiling a source program in the
Guardian environment, the ECOBOL compiler uses the eld utility to validate and
resolve internal and external references and produce an executable object file. If you
do not specify the RUNNABLE directive when compiling the source program, you must
invoke the eld utility after compilation to link the object files.
Use the eld utility to link TNS/E object files. If you compiled the source program with
the CALL-SHARED directive (the default), use the eld utility to produce a PIC loadfile
or linkfile.
To run the eld utility in the Guardian environment, enter eld at the TACL prompt.
In this example, the eld utility links the object files to create a PIC loadfile, myprog:
eld sqlobj obja objb -o myprog
For more information about the eld utility, see the eld Manual. For more information
about linking HP COBOL programs, see the COBOL Manual for TNS/E Programs.
Note. Embedded SQL/MP programs are disallowed in dynamic-link libraries (DLLs). When
compiling embedded SQL/MP programs, do not specify the SHARED directive, which
produces a DLL.
Caution. The -strip option of the linker removes symbols information from an object file.
Without the symbols information, the SQL compiler cannot compile the program file, and the
SQL executor cannot execute it.










