COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
19 Using HP COBOL in the OSS Environment
The NonStop operating system offers two operating environments:
• Guardian environment
• OSS environment
Open System Services provides industry-standard application program interfaces (APIs) and utilities
to enable you to port existing applications quickly and easily to NonStop systems. The NonStop
operating system continues to support Guardian services. HP has enhanced many tools from the
Guardian environment so that they also operate in the OSS environment. For example, the linker
now identifies OSS object files as well as Guardian object files.
Most features of the HP COBOL language and library are available in the OSS environment, and
most of them operate as they do in the Guardian environment. This section explains the few
exceptions. It also describes line sequential files (also called OSS ASCII files), which are available
in the OSS environment. For complete information about the OSS environment, see the Open
System Services Programmer’s Guide.
To terminate a compilation in the OSS environment, press Control-C (that is, press Control and
C—not c—simultaneously).
Running the ECOBOL Compiler
In the OSS environment, the OSS utility ecobol calls the compiler (ecobol), optionally followed
by the linker and SQLCOMP compiler (for SQL/MP) or MXCMP compiler (for SQL/MX). The flags
and the types of files in the operands determine which processes operate on the files in the operands.
The ecobol utility generates programs that run in the OSS environment. To generate programs
that run in the Guardian environment, use either the -Wsystype=guardian flag in the OSS
environment or the ECOBOL command in the Guardian environment (see Starting a Compilation
(page 529)).
Text file inputs to the compiler can be OSS ASCII text files (code 180) or Guardian EDIT files (code
101).
The command to run the ECOBOL compiler in the OSS environment
is:
ecobol
must be typed as shown, in lowercase letters.
flag
is as described in the Open System Services Shell and Utilities Reference Manual.
operand
Running the ECOBOL Compiler 711










