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

Removal Required
Replace any references to TNS/R libraries with references to the analogous TNS/E libraries:
With ...Replace ...
ECOBEX0NMCOBEX0
ECOBEX1NMCOBEX1
ECOBEXTNMCOBEXT
References to TNS /R libraries can appear in these contexts:
CONSULT directive
SEARCH directive
File-mnemonic clause of the SPECIAL-NAMES paragraph
OF or IN clause of the CALL or ENTER statement
Possible Changes Required
Directives
RENAMES Clause
Make any necessary changes to these items before compiling your HP COBOL source program
with the ECOBOL compiler.
Directives
CONSULT Directive
For the NMCOBOL compiler, each object-name in a CONSULT directive must designate a
TNS/R native object file (otherwise the compiler reports an error).
For the ECOBOL compiler, each object-name in a CONSULT directive must designate a TNS/E
native object file (otherwise the compiler reports an error).
For a complete description of this directive, see CONSULT and NOCONSULT (page 544).
OPTIMIZE Directive
The NMCOBOL compiler handles OPTIMIZE 2 as if it were OPTIMIZE 1, because native
COBOL does not support global optimization. The ECOBOL compiler handles OPTIMIZE 2
as the COBOL85 compiler does.
Effect
ECOBOL CompilerNMCOBOL CompilerLevel
Code is not optimized. Provided in case other
optimization levels cause errors. Supports
symbolic debugging; data is always in memory.
Code is not optimized. Provided in case other
optimization levels cause errors. Supports
symbolic debugging; data is always in memory.
0
Code is optimized within statements, but not
across statement boundaries. Appropriate for
Code is optimized within statements and across
statement boundaries. The resulting code is more
1 (default)
application programs still being developed andefficient than that produced by lower levels of
optimization. tested. Supports symbolic debugging; data is not
always in memory.
Code is optimized within statements and across
statement boundaries, and the resulting code is
Uses level 1 instead.2
more efficient than code produced by lower
levels.
960 Migrating TNS/R Programs to TNS/E Programs