COBOL Manual for TNS and TNS/R Programs

Compiler Directives
HP COBOL Manual for TNS and TNS/R Programs522555-006
36-45
SYMBOLS and NOSYMBOLS
SYMBOLS and NOSYMBOLS
Default: NOSYMBOLS
Placement: Accepted anywhere, but to affect a program other than the first program
in a compilation unit, SYMBOLS must follow either an ENDUNIT
directive or an END PROGRAM statement, which signals the end of the
preceding program’s Procedure Division.
If you want a symbol table for a given separately compiled program, put
SYMBOLS before its Identification Division header. If the compiler
encounters a subsequent SYMBOLS or NOSYMBOLS directive within
the text of that separately compiled program, it issues a warning and
ignores that directive.
Scope: Applies until its opposite overrides it
Dependencies: SYMBOLS does not work when SYNTAX is active.
For SYMBOLS to affect a program other than the first program in a
compilation unit, it must be preceded by either an ENDUNIT directive or
an END PROGRAM statement, which signals the end of the preceding
program’s Procedure Division.
References:
ENDUNIT
SYNTAX
SYMBOLS
NOSYMBOLS
VST325.vsd