COBOL Manual for TNS and TNS/R Programs

Program Compilation
HP COBOL Manual for TNS and TNS/R Programs522555-006
11-49
Categories of Compiler Directives
Table 11-15. Code-Generation Control Directives (page 1 of 2)
Directive(s) Default Action
BLANK and NOBLANK
2
BLANK for COBOL85
compiler, NOBLANK
for NMCOBOL
compiler
Enables or suppresses default
initialization of data-items whose
declarations lack VALUE clauses
CALL-SHARED
3
NON-SHARED Generates shared code [position-
independent code (PIC)] (see
also SHARED)
CANCEL and NOCANCEL
CANCEL Controls whether code is
generated to initialize data for a
program that does not have the
INITIAL attribute
CHECK
Controls the level of run-time
checking included in the loadfile
COMPACT and NOCOMPACT
1
COMPACT Enables or suppresses code
compaction by procedure
relocation
COMPILE
COMPILE Generates object code (compare
to SYNTAX)
FLOAT and NOFLOAT
1
FLOAT Generates code for either
floating-point or decimal
arithmetic
INSPECT and NOINSPECT
INSPECT Selects the debugger to be used
if the program is initiated with
RUND or if the DEBUG
command is issued against it
LARGEDATA
2
Allocates specified data items in
extended memory without
requiring that their definitions be
moved to the Extended-Storage
Section (for COBOL85 compiler)
or large data areas (for
NMCOBOL compiler)
LESS-CODE
1
Controls generation of object
code that initializes the
Extended-Storage Section
NON-SHARED
NON-SHARED Generates nonshared code (non-
PIC) (compare to CALL-SHARED
and SHARED)
1. The NMCOBOL compiler ignores and issues warnings for these directives.
2. The COBOL85 and NMCOBOL compilers handle these directives differently.
3. The COBOL85 compiler reports an error for this directive.