TNS/R Native Application Migration Guide

User Library Migration Tasks
TNS/R Native Application Migration Guide523745-001
6-3
Specifying a User Library
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 and native user libraries. The
following table shows how to specify a user library for TNS and 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.
For more information on TNS user libraries, see the Binder Manual. For more
information on native user libraries, see the nld and noft Manual.
When TNS Processes Native Processes
compile time TAL compiler LIBRARY directive Not available
For a COBOL85 program, you
must specify the native user
library in a CONSULT directive at
compile time and again at run
time.
bind and link time Binder SET LIBRARY command
TNS c89 utility -Wrunlib=
pathname flag (for Guardian
programs compiled using c89)
nld utility -libname library
flag
nld utility -set libname
library and -change
libname library flags
Native c89 utility -Wnld=
"-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
For a COBOL85 program, you
must specify the same native
user library that you specified at
compile time at run time, using
the LIB option of the RUN
command (in the Guardian
environment) or the -lib flag of
the nmcobol utility (in the OSS
environment).