User Manual

Preparing Programs
HP NonStop AutoTMF Software User’s Guide429952-014
3-5
Preparing TNS/R Programs
Table 3-1. TNS/R Program Classes and NonStop AutoTMF Libraries:
COBOL and C Programs
Before they are prepared, COBOL and C programs reference the COBOL and/or C
SRLs as well as the CRE library routines. The COBOL and C programs automatically
have compiler-defined data structures that are referenced by the initialization routines
in those SRLs.
If a program references the COBOL/C/CRE SRLs (and no others), the PREPARE
command will automatically retarget calls made to those libraries to the ESCRUNNM
user library provided as part of the NonStop AutoTMF TNS/R support. The prepared
program will have no references to SRLs.
ESCRUNNM is an executable user library that contains the COBOL, C, CRE, and
GPLIB runtime libraries. The COBOL/C/CRE libraries are compatible and use the data
structures defined by the CRE. Programs must have data structures that are
compatible with the CRE initialization routines.
ESCRUNNL is a linkable version of the ESCRUNNM library; use this object if you
relink the NonStop AutoTMF runtime with your own TNS/R user library.
pTAL Programs
Programs written exclusively in pTAL do not reference any SRL. (A pTAL program that
uses the CRE SRL will be prepared in the same way as a COBOL or C program.)
ESCRUNNT is an executable user library that contains only the GPLIB libraries.
Specifically, ESCRUNNT does not contain initialization routines for CRE data
structures. If a program gets a “heap error” during initialization the program probably
has no CRE data structures, and is using the CRE SRL.
ESCRUNN is a linkable version of the ESCRUNNT library; use this object if you relink
the NonStop AutoTMF runtime with your own TNS/R user library.
Program Class
Runtime
library Linkable library Preparation Processing
COBOL/C ESCRUNNM ESCRUNNL SRLs references eliminated; all
calls intercepted in NonStop
AutoTMF UL.
pTAL ESCRUNNT ESCRUNN Direct Enscribe/GPLIB calls
intercepted in NonStop AutoTMF
UL
C++/Other SRL ESCRUNNT ESCRUNN Direct Enscribe/GPLIB calls
intercepted in NonStop AutoTMF
UL; all other calls not intercepted