CROSSREF Manual
COBOL85
Using Compiler Directives in CROSSREF
USING COMPILER DIRECTIVES IN CROSSREF
Because CROSSREF actually invokes the COBOL85 compiler to collect
the identifier information, you might need to pass a default
library file name or one or more directives to the compiler.
(You supply the library file name for COPY statements that do not
specify one.)
The SET DIRECTIVES command enables you to pass one or more
compiler directives to the COBOL85 compiler while the SET LIBRARY
command lets you pass a default library file name. In the
following example, the SET DIRECTIVES command sets the ANSI
formatting directive and a conditional compilation toggle; the
SET LIBRARY command alters the default copy library name from
COPYLIB to MYLIB.
12> CROSSREF
CROSSREF-CROSS-REFERENCE PROGRAM-T9622C00-(15JUL87)
Copyright Tandem Computers Incorporated 1982, 1983, 1985, 1986
&SET LANGUAGE cobol85
&SET LIBRARY mylib
&SET DIRECTIVES "ANSI;SETTOG 1"
&SCAN bprog
&GENERATE /OUT $s.#cros/
&EXIT
13>
7-3