CROSSREF Manual

INTRODUCTION
Which Languages Does CROSSREF Support?
WHICH LANGUAGES DOES CROSSREF SUPPORT?
CROSSREF supports the following languages: C, COBOL 74, COBOL85,
EXTENDED BASIC, FORTRAN, Pascal, SCREEN COBOL, and TAL. (When
you want to invoke COBOL 74, enter just COBOL at the system
prompt. To invoke COBOL85, enter COBOL85.) You can use
CROSSREF on application programs coded in any combination of
these languages.
CROSSREF uses a set of generic identifier classes that are mapped
to various data types in each language. Not all languages use
all of the identifier classes. Instead, the mapping of data
types to identifier classes is language specific; a CROSSREF
identifier might or might not be used by a given language.
The identifier classes used by each language are listed at the
beginning of each language section in this book.
HOW DOES CROSSREF WORK?
CROSSREF has two modes of operation: stand alone and compiler
dependent. Whichever mode you use, CROSSREF obtains information
about your program from the compiler.
CROSSREF uses the compiler to scan the source file and pass
information about the identifiers back to CROSSREF. CROSSREF
then collects, combines, and sorts identifier information into
a single, alphabetized cross-reference listing. Each entry
includes information about the name of the identifier, the type
of identifier (label, variable, and so forth), the type of
reference it is (for example, a read or write reference), and
where the reference was found (source file and line number).
CROSSREF then writes the listing to a file that you specify.
You can select which identifiers appear in the cross-reference
listing by using the SET CLASS command when running in stand-
alone mode or by using control directives when running in
compiler-dependent mode. Refer to Section 4 for information
on the SET command and to the appropriate language manual for
information on control directives.
1-2