TNS/E Native Application Conversion Guide
Converting a TNS User Library
TNS/E Native Application Conversion Guide—529659-003
6-3
Specifying a User Library
See the following manuals for more details on building TNS/E native user libraries and
DLLs:
•
Compiler manuals
•
eld Manual
•
DLL Programmer’s Guide for TNS/E Systems
Specifying a User Library
Only one user library can be associated with a program file at any time. Associating a
user library with a program file is nearly identical for TNS user libraries and TNS/E
native user libraries. This table describes how to specify a user library for TNS
processes and TNS/E native processes:
Unlike TAL, you cannot specify a user library in pTAL source code with the LIBRARY
directive. Remove LIBRARY directives from pTAL programs.
User libraries specified at run time override those specified at link time.
When TNS Processes TNS/E Native Processes
Compile time TAL programs: LIBRARY
directive at compile time.
LIBRARY directive not available
COBOL programs: Specify the
TNS/E native user library in a
CONSULT directive
Bind and link time Binder SET LIBRARY command
C/C++ programs: TNS c89 utility
-Wrunlib=
pathname
flag (for
Guardian programs compiled
using c89)
C/C++ programs: TNS/E c99
utility -Wrunlib=
pathname
flag (for Guardian programs
compiled using c99)
eld utility -libname flag
eld utility -set libname and
-change libname flags
TNS/E native c89 utility -Weld=
"-libname
library
" flag
TNS/E native c99 utility -Weld=
"-libname
library
" flag
Run time TACL command interpreter RUN
command LIB option
OSS run gtacl command -lib
flag
TACL command interpreter RUN
command LIB option
OSS run gtacl command -lib
flag
COBOL programs: Specify the
same TNS/E native user library
that you specified at compile
time, using the LIB option of the
RUN command (in the Guardian
environment) or the -lib flag of
the ecobol utility (in the OSS or
PC environment)










