COBOL Manual for TNS and TNS/R Programs
Using HP COBOL in the OSS Environment
HP COBOL Manual for TNS and TNS/R Programs—522555-006
19-3
Running the NMCOBOL Compiler
Successful compilation always creates object files. If the -c flag is specified, the object
files created for source files of the form file.cbl 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.
Running the NMCOBOL Compiler
In the OSS environment, the OSS utility nmcobol calls the native HP COBOL compiler
(NMCOBOL), 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 nmcobol 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 NMCOBOL command in the Guardian environment
(see Starting a Compilation).
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 NMCOBOL compiler in the OSS environment is:
nmcobol
must be typed as shown, in lowercase letters.
flag
is as described in the Open System Services Shell and Utilities Reference Manual.
operand
Note. If you compile more than one source file in a single compilation with the cobol utility,
the COBOL85 compiler creates an object file for each source file for which there were no
compilation errors.
flag operand
pathname
operand
nmcobol
VST733.vsd
-l
pathname
library
VST622.vsd