COBOL Manual for TNS and TNS/R Programs
Migrating TNS Programs to Native Programs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
33-20
New Features (Optional)
New Features (Optional)
You can (but need not) add these new features to your HP COBOL source program 
before you compile it with the NMCOBOL or ECOBOL compiler.
•
CALL-SHARED directive
The CALL-SHARED directive generates shared code (PIC). See CALL-SHARED. 
For the ECOBOL compiler, this is the default.
•
DIAGNOSE-85 directive
The DIAGNOSE-85 directive causes the NMCOBOL and ECOBOL compilers to 
issue warnings when they encounter source constructs that could cause the 
program to produce different results than it would if it were compiled with the 
COBOL85 compiler.
For a complete description of the DIAGNOSE-85 directive, see DIAGNOSE-85 and 
NODIAGNOSE-85.
•
FMAP
The FMAP directive causes the NMCOBOL and ECOBOL compilers to produce a 
source file map, which shows the fully qualified name and timestamp of the IN file 
and each file specified by a SOURCE directive or COPY statement. For more 
information, see FMAP.
•
INNERLIST and NOINNERLIST directives
The INNERLIST and NOINNERLIST directives determine whether the NMCOBOL 
or ECOBOL compiler lists the mnemonic version of each source statement 
immediately after that source statement.
For a complete description of the INNERLIST and NOINNERLIST directives, see 
INNERLIST and NOINNERLIST.
•
RUNNABLE directive
The RUNNABLE directive causes the NMCOBOL or ECOBOL compiler to use one 
of these linkers to produce a loadfile if there were no compilation errors:
Compiler Directive Linker Documentation
NMCOBOL NON-SHARED (default) nld nld Manual
CALL-SHARED or SHARED ld ld Manual
ECOBOL eld eld Manual










