CROSSREF Manual
COBOL 74
USING COMPILER DIRECTIVES IN CROSSREF
USING COMPILER DIRECTIVES IN CROSSREF
Because CROSSREF actually invokes the COBOL 74 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 COBOL 74 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 cobol
&SET LIBRARY mylib
&SET DIRECTIVES "ANSI;SETTOG 1"
&SCAN bprog
&GENERATE /OUT $s.#cros/
&EXIT
13>
6-3