COBOL Manual for TNS and TNS/R Programs

Program Compilation
HP COBOL Manual for TNS and TNS/R Programs522555-006
11-63
CROSSREF and NOCROSSREF
When object-name is an archive file, the entire archive file is generally not
linked into the target object file. Only those member files are linked that contain
procedures named either in the statement CALL or in the statement ENTER in
the COBOL program being compiled. Whenever a procedure is needed from a
member file, the entire member file is linked.
If a native HP COBOL program references object-name either in the
statement CALL or in the statement ENTER, object-name must have been
compiled with the SYMBOLS directive (see SYMBOLS and NOSYMBOLS).
NOCONSULT
clears the tertiary search list for the COBOL85 compiler, but is ignored by the
NMCOBOL compiler.
If more than one CONSULT is present, the object names are appended to the list in the
order they are read; however, if any object name specified is already in the list, it
retains its current position in the list.
CROSSREF and NOCROSSREF
CROSSREF and NOCROSSREF determine the classes of symbols included in the
cross-reference listing.
For TNS HP COBOL programs, the CROSSREF directive duplicates some of the
capabilities provided by the CROSSREF utility program. The CROSSREF utility is
recommended over the CROSSREF directive because it is more efficient and more
flexible, enabling you to include or exclude specific identifiers rather than only identifier
classes. For information on the CROSSREF utility, see the CROSSREF Manual.
Default: NOCONSULT
Placement: Anywhere
Dependencies: None
Note. The NMCOBOL compiler issues warnings for these directives and does not produce a
cross-reference listing. If you need one, use the noft utility with the XREFPROC flag (see the
noft Manual).
CROSSREF
class-list
NOCROSSREF
VST275.vsd