SQL/MP Programming Manual for COBOL85

Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL85429326-004
6-16
Running the COBOL85 Compiler in the OSS
Environment
Successful compilation always creates object files. If the -c option is specified, the
object files created for source files of the form file.cbl or file.cob have the form
file.o. For example, for a source file named main.cbl, successful compilation
creates an object file named main.o in the current directory.
To terminate a compilation in the OSS environment, press the Control and c keys
(Ctrl-c) simultaneously.
-Wrunlib=pathname Directs the cobol utility to make pathname the user
library to be used at run time (pathname must be a
Guardian file).
-Wsql[="arguments"] Directs the cobol utility to invoke the SQL compiler,
passing it arguments (For a description of the arguments
that can be passed to the SQL compiler, see SQL
Compiler Options on page 6-26).
-Wsqlcomp="arguments" Directs the cobol utility to run the SQLCOMP compiler
after the link step, using arguments as SQLCOMP
directives.
-W[no]suppress Directs the cobol utility to disable [enable] the generation
of the compiler listing. The compiler listing is placed in a
file in the current working directory with the same name as
the source, but with the suffix .L. The default is -
Wsuppress.
-Wsyntax Directs the cobol utility to check the syntax of the source
program, but not generate any code.
-Wusage Directs the cobol utility to display information on how to
run the cobol utility. No compilation system components
are run.
-Wv Directs the cobol utility to echo to the standard error file
the command line as each component of the compilation
system is run.
-Wverbose Directs the cobol utility to display detailed information
from the COBOL85 compiler, Binder, and Accelerator (For
details, see the COBOL85 for NonStop Systems Manual).
-Ww Directs the cobol utility to suppress the printing of
compiler warning messages.
-Wx Directs the cobol utility to strip part of the symbol table
from the output object file, but keep information necessary
for the object file to be used as input to the nld utility. This
flag is typically used with the -Wr flag.
Table 6-1. OSS cobol Utility Flags (page 3 of 3)