COBOL Manual for TNS/E Programs (H06.03+)

HP COBOL Manual for TNS/E Programs520347-003
33-1
33
Migrating TNS/R Programs to TNS/E
Programs
HP provides these native compilers for HP COBOL source programs:
The ECOBOL compiler is available both on NonStop systems and on the PC. In this
section, “ECOBOL compiler” refers to both of the ECOBOL compilers, unless
otherwise noted.
Taking an HP COBOL source program that was compiled with the NMCOBOL compiler
and recompiling it with the ECOBOL compiler is called “migrating from TNS/R to
TNS/E.” Migrating to TNS/E might require source program changes.
You can write HP COBOL source programs that can be compiled with any version of
the NMCOBOL or ECOBOL compiler.
Topics:
Reason to Migrate
Migrating HP COBOL Programs
Source Program Changes
Maintaining Common Source Code
Reason to Migrate
A HP COBOL program compiled with the NMCOBOL compiler will not run on a TNS/E
system. If you want to run an HP COBOL program on a TNS/E system, you must
compile it with the ECOBOL compiler.
Note. This section applies to migrating TNS/R HP COBOL programs to TNS/E HP COBOL
programs, and assumes that you are running RVU G06.20 or later. To migrate TNS
HP COBOL programs to TNS/R or TNS/E HP COBOL programs, see the COBOL Manual for
TNS and TNS/R Programs.
Compiler Objects Produced
NMCOBOL TNS/R
ECOBOL TNS/E