COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programs—522555-006
11-66
DIAGNOSE-74 and NODIAGNOSE-74
•
CROSSREF at the beginning of a program unit, followed by NOCROSSREF at the
beginning of a SECTION, followed by CROSSREF after the end of the SECTION,
collects cross-reference information for all of the program unit; it does not suppress
the collection or reporting of data in the delimited section.
If LIST is active, any cross-reference information collected during the compilation of a
given program unit is sent to the output file before subsequent program units in the
compilation unit are compiled.
The COBOL85 compiler cannot create “global” cross-reference listings because each
COBOL program unit is completely self-contained. To obtain a “global” cross-reference
listing of an entire compilation unit containing multiple program units, use the
CROSSREF utility. For an example of a COBOL cross-reference listing produced by
the CROSSREF utility and information on how to use CROSSREF, see Section 24,
Issues Related to Binding and Linking.
DIAGNOSE-74 and NODIAGNOSE-74
DIAGNOSE-74
causes the compiler to issue warnings when it encounters source constructs that
could cause the program to produce different results than it would if it were
compiled with the HP COBOL 74 compiler.
NODIAGNOSE-74
prevents the compiler from issuing warnings when it encounters source constructs
that could cause the program to produce different results than it would if it were
compiled with the HP COBOL 74 compiler.
The warning messages issued begin with:
Logic may differ from COBOL 74 -
Default: NODIAGNOSE-74
Placement: Anywhere
Scope: Applies until its opposite overrides it
Dependencies: None
DIAGNOSE-74
NODIAGNOSE-74
VST277.vsd