Introduction
This chapter describes OFCOBOL characteristics and how to install and configure it.
1. Overview
OFCOBOL is a COBOL compiler which compiles the source code written in the COBOL language to create an executable file or a shared library.
OFCOBOL has the following characteristics.
-
COBOL Data
-
Used for Enterprise COBOL for z/OS.
-
Supports up to 31-digit fixed-point numeric data.
-
-
LLVM Backend Based
-
Provides optimization and other various functions provided by LLVM.
-
-
OpenFrame Integration
-
Allows reusing existing mainframe environment without modification through integration with OpenFrame (Batch, OSC, and OSI).
-
-
Target Machine
-
Only supports Linux x86 64-bit.
-
2. Installing OFCOBOL
OFCOBOL has the following requirements.
Classification | Requirements |
---|---|
Hardware |
At least 300 MB hard disk space (More than 1 GB recommended) |
At least 256 MB RAM (More than 512 MB recommended) |
|
Software |
gcc and g++ 4.4.X or later |
Linux OS |
OFCOBOL compiler uses gcc and g++ as a linker, gcc and g++ must be installed. For more information about their installation, refer to OpenFrame COBOL Installation Guide. |
3. Configuring Environment Variables
The following example configures environment variables, where the OFCOBOL installation directory is ${OFCOB_INSTALL}.
export LD_LIBRARY_PATH=${OFCOB_INSTALL}/lib:$LD_LIBRARY_PATH export OFCOB_HOME=${OFCOB_INSTALL} export PATH=${OFCOB_INSTALL}/bin:$PATH export OFCOBCPY=${OFCOB_COPYBOOK}
The following describes each environment variable.
Variable | Description |
---|---|
LD_LIBRARY_PATH |
Library directory including the lib directory of OFCOBOL. |
OFCOB_HOME |
OFCOBOL installation directory. |
PATH |
Execution directory including the bin directory of OFCOBOL. |
OFCOBCPY |
Copybook directory. |
OFCONV_HOME |
IDMS preprocessor (ofconv) installation directory. |
OFCONV_PATH |
Path to DML tag copybook used by the IDMS preprocessor (ofconv). |