CROSSREF Manual

RUNNING CROSSREF
Multi-Language Program
In summary, the following four commands produce a cross-reference
listing of the program file DREAM9:
&SET LANGUAGE cobol
&SCAN dream9
&GENERATE /OUT outfile/
&EXIT
16>
Example 2
To produce a more selective cross reference, you can request that
CROSSREF report only certain identifiers. Example 2 shows how
to produce a cross-reference listing of just the conditions and
labels in the program named DREAM9. (Labels are section and
paragraph names in COBOL. DREAM9, as mentioned in Example 1, is
a COBOL 74 program.)
&SET LANGUAGE cobol
&SET CLASS * OFF
&SET CLASS CONDITIONS ON
&SET CLASS PROGLABELS ON
&SCAN dream9
&GENERATE /OUT outfile/
&EXIT
12>
Multi-Language Program
The following example shows how CROSSREF produces a single cross-
reference listing for a program coded in two languages. The
CROSSREF scan takes place in two steps-- one step for each
language.
1. Using the SET LANGUAGE command, specify the language you are
using for the first file. In this example, the first file is
a COBOL 74 program:
&SET LANGUAGE cobol
2. Tell CROSSREF to scan the file, named TVC15, using all of the
default settings for the attribute specifications:
&SCAN tvc15
2-6