SQL/MP Programming Manual for COBOL85

Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL85429326-004
6-13
Running the COBOL85 Compiler in the OSS
Environment
compiler-directive
is a compiler directive as described in the COBOL85 for NonStop Systems Manual.
To terminate a compilation in the Guardian environment, use the Break key to return to
the Command Interpreter and stop the process using its process identification number.
Running the COBOL85 Compiler in the OSS Environment
The OSS utility cobol generates COBOL programs that run in the OSS environment.
The cobol utility invokes the HP COBOL85 compiler (COBOL85), optionally followed
by the Binder, Accelerator, and SQL compiler. The flags and the types of files in the
operands determine which processes operate on the files in the operands.
Text file inputs to the compiler can be OSS ASCII text files (code 180) or Guardian
EDIT files (code 101).
The command syntax for running the COBOL85 compiler in the OSS environment
follows. The cobol utility is case-sensitive. Bracketed items are optional. Put spaces
between flags and their parameters but do not put spaces on either side of equal signs.
For detailed information on the cobol utility, see the Open System Services Shell and
Utilities Reference Manual.
flag
is one of the flags in Table 6-1 on page 6-14. The cobol utility is case-sensitive.
Bracketed items are optional. Put spaces between flags and their parameters but
do not put spaces on either side of equal signs. Do not specify conflicting -W flags
because results are undefined.
operand
The operand on which the cobol utility flags act takes this form:
file {.cbl }
{.cob }
{.a }
{.o }
{.so }
-l library
where
file
is an OSS file name.
cobol [ flag [ flag ]... ] operand ...