CROSSREF Manual

RUNNING CROSSREF
Single-Language Program
Single-Language Program
The following examples show how CROSSREF produces a cross-
reference listing for a program coded in a single language.
To invoke CROSSREF from the GUARDIAN command interpreter, type
CROSSREF. The IN
file-name
and OUT
file-name
options default
to the home terminal. CROSSREF displays the product banner and
issues the prompt character to show that it is ready to receive
commands.
14> CROSSREF
CROSSREF-CROSS-REFERENCE PROGRAM-T9622C00-(15JUL87)
&
Example 1
Example 1 shows the easiest sequence of commands for producing a
cross-reference listing. Simply follow these steps:
1. Specify which language you are using with the SET LANGUAGE
command; in this example, it is COBOL 74:
&SET LANGUAGE cobol
2. Tell CROSSREF to scan the program file; in this example, the
program file is named DREAM9:
&SCAN dream9
3. Then tell CROSSREF to generate a listing and print it to an
output file; in this example, the output goes to a file named
OUTFILE:
&GENERATE /OUT outfile/
4. Enter EXIT to end the session and return control to the
command interpreter:
&EXIT
15>
2-5