Preparing a user library, Tns and tns/r programs, Tns/e programs – HP Integrity NonStop J-Series User Manual
Page 43
Preparing Programs
HP NonStop AutoTMF Software User’s Guide—429952-017
3-9
Preparing a User Library
This error occurs because a program cannot be successfully prepared if it references a
user library that does not contain the NonStop AutoTMF runtime library.
If any of your programs refer to a user library, the user library should be prepared.
TNS and TNS/R Programs
Once the user library has been prepared, the NonStop AutoTMF runtime library must
be bound into the user library object file. This step must be completed before you
prepare the programs that reference the user library. The preparation of such programs
verifies that the user library contains the NonStop AutoTMF runtime library and if the
NonStop AutoTMF runtime library is not present, the prepare operation fails.
By default, the PREPARE command does not alter an existing reference to a user
library, so you must replace each existing user library with a user library that contains
the NonStop AutoTMF runtime library. Bind the standard ESCRUNTM into your
prepared user library and then prepare the programs.
You may, however, change the default user library by specifying the LIBRARY option
(see
Changing the User Library with Prepare
TNS/E Programs
A TNS/E program can have a user library and multiple DLLs. A user library can have
its own DLLs. Similarly, a DLL can have its own DLLs. This feature of DLL
implementation eliminates the need to bind or link the AutoTMF runtime into the user
library. Instead, when the user library is prepared, the AutoTMF runtime DLL is set as a
DLL to the user library.
Preparing a User Library
By default, the
command only modifies executable object files. If you
attempt to prepare a program that references a user library, the following message is
displayed:
To prepare a user library, use the PREPARE command specifying the USERLIB option
as follows:
AutoTMF 1? prepare $DATA.LIB.TINFOB;
*Warning* Object file $DATA.LIB.TINFOB has no MAIN procedure.
* 1658 * A user library must be prepared with the USERLIB option
* * and then bound with the AutoTMF runtime library.
AutoTMF 1? prepare $DATA.LIB.TINFOB, USERLIB;
--- $DATA.LIB.TINFOB preparation complete, but has no MAIN;
--- a user library must be bound with the AutoTMF runtime library.