Preparing tns programs, Preparing tns/r programs – HP Integrity NonStop J-Series User Manual
Page 38
![background image](/manuals/397618/38/background.png)
Preparing Programs
HP NonStop AutoTMF Software User’s Guide—429952-017
3-4
Preparing TNS Programs
To view the prepared status of a collection of object files, use
example:
Preparing TNS Programs
The NonStop AutoTMF runtime library for TNS programs (ESCRUNTM) contains
prepared copies of the COBOL85, C, CRE, and GPLIB runtime libraries. This
arrangement is required to allow AutoTMF to intercept all file system calls made by
these libraries. These libraries also exist in the “system library” created by SYSGEN,
but you cannot intercept calls that are made to the system library.
If a TNS program currently calls a procedure in the system library routine at run time,
the calls are automatically retargeted to the ESCRUNTM user library if the
ESCRUNTM user library contains the same procedure.
Any COBOL, C, or TAL TNS program can use the ESCRUNTM library. If the program
does not call a language runtime routine, no side-effects occur when the routine is
bound to the runtime library.
Preparing TNS/R Programs
Preparation steps for TNS/R programs are the same as described above, with a few
limitations.
For TNS/R programs, the language runtimes have a significantly different
implementation:
The NonStop OS supports special initialization routines. If the program or library
contains procedures that have special names, those procedures run automatically
before the program starts. For example, the C runtime library has an initialization
routine to initialize the heap data structures.
AutoTMF 1? info program $data.srvobj.*;
$DATA.SRVOBJ
Type SQL User Library Status
...
EGETEMP TNSE Loadfil Not Prepared
OGETEMP TNS Program $TOOLS.ESCORT.ESCRUNTM Prepared
OGETINFO TNS Program Not prepared
OPNUPD AXL Program $TOOLS.ESCORT.ESCRUNTM Prepared
ORDEMP AXL Program $TOOLS.ESCORT.ESCRUNTM Prepared
OREQ TNS Program $TOOLS.ESCORT.ESCRUNTM Prepared
OSERV TNS Program $TOOLS.ESCORT.ESCRUNTM Prepared
RGETEMP TNSR Loadfil $TOOLS.ESCORT.ESCRUNNT Prepared
TSTATMFO TNS Program $TOOLS.ESCORT.ESCRUNTM Prepared
XLGETEMP AXL Program $TOOLS.ESCORT.ESCRUNTM Prepared
XREQ TNSR Loadfil $TOOLS.ESCORT.ESCRUNNT Prepared
XSERV TNSR Loadfil $TOOLS.ESCORT.ESCRUNNT Prepared
YGETEMP TNSE Loadfil Not prepared
YREQ TNSE Linkfil Not prepared
YSERV TNSE Linkfil Not prepared
Object file summary: prepared = 10, not prepared = 5, excluded = 0