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

User Commands (d - f) ecobol(1)
DESCRIPTION
The ecobol utility is the interface to the ECOBOL compilation system; it accepts source code con-
forming to the ISO COBOL85 standard. The system consists of an ECOBOL compiler and a
linker utility (eld), with additional program components supporting SQL.
ecobol performs simple validation of the ags and operands on its command line and, depending
on those items, invokes components of the language compilation system. ecobol does not verify
the existence of les it passes to compilation system components. It does verify that operand
identies valid les to pass to compilation system components. ecobol and the components it runs
issue messages to the standard error le.
ecobol performs the following steps:
1. If the -Wsqlmx ag is specied, invokes the NonStop SQL/MX preprocessor to prepro-
cess any COBOL source les that contain embedded NonStop SQL/MX statements to
create either of the following:
COBOL source les with module denitions (using the release 2 module manage-
ment method)
COBOL-only source les and module denition les (MDFs) (using the release 1
module management method)
2. Compiles any specied COBOL source les or source les produced by Step 1 into object
les.
3. If the -Wmxcmp ag is specied, invokes the NonStop SQL/MX compiler to compile any
module denitions or MDFs.
4. Links the object les together with any libraries specied on the command line. This step
occurs if no ags that prevent linking (such as -c or -Wnolink) are specied and if the
source les are compiled without errors.
5. If the -Wsqlcomp ag is specied, invokes the NonStop SQL/MP compiler to process any
embedded NonStop SQL/MP statements in les created by Step 1 or specied in the com-
mand.
6. Writes an executable object le or dynamic link library (DLL) specied by the -o ag (if
present) or to the le a.out.
The les specied in the operand list are operated on by the appropriate program components of
the compilation system, depending on the command line ags and the type of le operands.
If the -c ag is specied, then for all pathname operands of the form le.cbl, the les $(basename
pathname.c).o are created as the result of successful compilation.
If -c is not specied, the object les created after successful compilation are combined by the link
operation into a program le, dynamic-link library (DLL), or user library. When linking is per-
formed and either the -Wsqlmx or -Wmxcmp ag is specied, the list of libraries searched
automatically includes zclidll. Object les created are not deleted after successful generation of
the executable program le.
The executable le is created according to OSS le creation rules, except that the le permissions
are set to S_IRWXO | S_IRWXG | S_IRWXU and the bits specied by the umask value of the
process are cleared.
527188-003 Hewlett-Packard Company 335