COBOL Manual for TNS and TNS/R Programs

HP COBOL Manual for TNS and TNS/R Programs522555-006
33-1
33
Migrating TNS Programs to Native
Programs
HP NonStop Series/RISC and HP NonStop Series/Itanium enable you to write
programs that are fully optimized for NonStop Series/RISC and NonStop
Series/Itanium systems such as HP NonStop systems. The term “native” means the
program uses the process, memory, and instruction set architectures that are native to
RISC and Itanium processors. A TNS program is “nonnative” in that it uses the
process, memory, and instruction set architectures of CISC processors. For further
explanation of native mode and native tools, see the introduction to either the TNS/R
Native Application Migration Guide or the TNS/E Native Application Conversion Guide.
HP provides these compilers for HP COBOL source programs:
The NMCOBOL and ECOBOL compilers are available both on NonStop systems and
on the PC. In this section, “NMCOBOL compiler” refers to both of the NMCOBOL
compilers and “ECOBOL compiler” refers to both of the ECOBOL compilers, unless
otherwise noted.
Taking an HP COBOL source program that was compiled with the COBOL85 compiler
and recompiling it with the NMCOBOL or ECOBOL compiler (so that the resulting
object program runs in native mode) is called “migrating to native mode.” Migrating to
native mode might require source program changes, both to the source code itself and
to the way you develop and manage the source code.
You can write HP COBOL source programs that can be compiled with any version of
the COBOL85 compiler after product version D32 and, without source program
changes, can also be compiled with any version of the NMCOBOL or ECOBOL
compiler.
Note. This section applies to migrating TNS HP COBOL programs to TNS/R or TNS/E
HP COBOL programs. To migrate TNS/R HP COBOL programs to TNS/E HP COBOL
programs, see the COBOL Manual for TNS/E Programs.
Compiler Objects Produced
COBOL85 TNS
NMCOBOL TNS/R
ECOBOL TNS/E