Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
cobol(1) OSS Shell and Utilities Reference Manual
-l library In the static binding mode, search for the library named liblibrary.a. In the
dynamic binding mode, search for the library named liblibrary.so.If
liblibrary.so is not found, liblibrary.a is used.
A library is searched when its name is encountered, so the placement of -l is
significant.
Input Files
Input files are one of the following:
• A text file containing a COBOL85 language source program
• An object file in the format produced by the command cobol -c
• A library of object files in the format produced by archiving zero or more
object files using the ar command
• A library of object files produced by the Binder
• An executable file produced by the Binder
Output Files
Output files are object files or executable files (or both).
Standard Output
The standard output is a text file that contains the compiler listing, if generated.
Standard Error
Standard error is used for diagnostic and informational messages. If more than one file operand
is specified, for each such file, "%s: \n",<file> might be written. These messages precede
the processing of each input file.
Environment Variables
The environment variables listed below affect the execution of cobol. The cobol utility and its
program components do not support locale variables.
AXCEL Determines the pathname of the Accelerator invoked by cobol. By default,
the program axcel in the directory /G/system/system is used.
BIND Determines the pathname of the Binder invoked by cobol. By default, the
program bind in the directory /G/system/system is used.
SQLCOMP
Determines the pathname of the NonStop SQL/MP compiler invoked by
cobol. By default, the program sqlcomp in the directory /G/system/system
is used.
Operations
cobol is the driver program of the COBOL85 language compilation system. It accepts COBOL85
source files and generates binary files executable in the OSS environment. Depending on user-
specified flags, input file operands, and completion code at each stage, cobol invokes one or more
components of the compilation system. A program-generation process can involve the following
steps:
1. Each COBOL85 source module is compiled into an object module by the
COBOL85 compiler.
2−88 Hewlett-Packard Company 527188-021