Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

User Commands (c) cobol(1)
2. Object modules are bound together, with additional library routines if neces-
sary, by the Binder into a single program file, unless flag -c or -Wnobind is
specified. In this case, processing stops after compilation of source modules.
3. If the program is to be run on TNS/R systems, the user can accelerate the pro-
gram with the Accelerator to obtain maximum performance.
4. If the program contains embedded SQL statements, it needs to be compiled by
the NonStop SQL/MP compiler as the final step.
With the exception of the cobol utility, all components are invoked as Guardian
processes. cobol provides terminal emulation (input from and output to) the control-
ling terminal for these processes, if necessary. For Guardian processes that do not use
cobol for terminal emulation or are not interactive, the stop/continue type of OSS job
control is not supported.
The Binder is invoked with a command file containing the following commands:
MODE NOUPSHIFT
SELECT CHECK PARAMETER STRONG
SELECT FILESYS OSS
SET SYSTYPE OSS
ADD * FROM <object created by COBOL85 compiler or input object
file>
SELECT SEARCH <library specified by -l flag>
SELECT IMPORT LIBRARY <shared runtime library if found in
dynamic binding mode>
SET HIGHPIN ON
SET HIGHREQUESTERS ON
SELECT LIST * OFF
SELECT RUNNABLE OBJECT ON
<SET INSPECT ON if -g flag>
SET SAVEABEND ON
SET HEAP 32 PAGES
<argument string from -Wbind options>
SELECT SEARCH <standard C library, libc.a or libc.so>
BUILD <filename from -o option or a.out>!
<STRIP filename if -s option>
Standard Libraries
The following libraries are available for COBOL85 programs that call OSS functions.
-l c Contains all library functions specified in the POSIX.1 specification, except
for those functions listed as residing in the math.h header file. The presence
of this operand is not required to cause a search of this library if the target
execution environment is the OSS environment.
-l C Contains the C++ runtime library. Bind this library before the standard C
runtime library.
-l m Contains all functions referenced in the math.h header file.
527188-021 Hewlett-Packard Company 289