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

User Commands (c) cobol(1)
The Binder is invoked with a command le 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 bind-
ing 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 specied in the POSIX.1 specication, except for those
functions listed as residing in the math.h header le. 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 le.
-l l Contains all functions required by the C language output of lex utility that are not made
available through the -l c operand.
-l y Contains all functions required by the C language output of yacc utility that are not
made available through the -l c operand.
-l gwc Contains the C runtime library for the Guardian environment, using the wide data-
model.
In the absence of ags that inhibit invocation of the Binder, such as -c, -E,orWnobind, cobol
passes an -l c operand to the Binder as the last -l operand, causing the standard C library to be
searched after all other object les and libraries are loaded.
Handling of Guardian Libraries
The cobol command tries to determine the type of a Guardian le from its content. Text input
les are assumed to be COBOL85 language source les.
The object le for a Guardian source le is named according to the following convention:
The object le uses the same lename with the letter "o" appended to the end. For exam-
ple, the object le xyzo is generated from the source le xyz.
527188-003 Hewlett-Packard Company 255