COBOL Manual for TNS and TNS/R Programs

Migrating TNS Programs to Native Programs
HP COBOL Manual for TNS and TNS/R Programs522555-006
33-3
Migrating HP COBOL Programs
For a native HP COBOL program, search lists are optional. If a program does not
have search lists, or if the compiler cannot find an external reference in the files on
the search lists:
Native routines
Many new products and interfaces exist only in native mode (HP NonStop
TUXEDO Release 2, for example). If you want your HP COBOL programs to
interface with these products, you must migrate your HP COBOL programs to
native mode.
Native COBOL cross compiler
The native COBOL cross compiler enables you to build applications for NonStop
systems on a personal computer (PC). The native COBOL cross compiler and
related companion tools have been integrated into this environment that targets
both the Guardian and OSS environments. For more information, see Section 34,
Native COBOL Cross Compiler on PC.
Migrating HP COBOL Programs
The recommended procedure for migration from TNS HP COBOL to native HP COBOL
is:
1. Change your program so that it runs in the CRE, if it does not already
(see Section 18, HP COBOL CRE Support).
2. Verify that you have adequate system resources for the migrated programs.
Native object files use approximately the same amount of disk space as
accelerated object files. Native processes use approximately the same amount of
processor memory as TNS processes running in accelerated mode.
TNS/R TNS/E
The NMCOBOL compiler automatically
searches the SRLs ZCOBSRL and
ZCRESRL and then the file NMCOBEXT
(the TNS/R equivalent of COBOLEXT).
The ECOBOL compiler automatically
searches the DLLs ZCOBDLL and
ZCREDLL and then the file ECOBEXT (the
TNS/E equivalent of COBOLEXT).
ZCOBSRL contains the COBOL utility
routines which, for TNS HP COBOL,
resided in the system library, COBOLLIB,
and CBL85UTL.
ZCOBDLL contains the COBOL utility
routines which, for TNS HP COBOL,
resided in the system library, COBOLLIB,
and CBL85UTL.
ZCRESRL contains the run-time routines
which, for TNS HP COBOL, resided in the
system library or in CLULIB.
ZCREDLL contains the run-time routines
which, for TNS HP COBOL, resided in the
system library or in CLULIB.