Elastic COBOL is distributed as an Eclipse plug-in and as such, the actual compiler and the runtime-jars are within one of the plug-in modules. However, you can set up Elastic COBOL to run in a command-line mode for inclusion in software building tools such as make, ant or maven.
You can set up symbolic links, shell or bat commands, or command aliases to point to the various compile- and run-time components.
- Compiler: $EC_HOME/plugins/com.heirloomcomputing.ecd.core_version/elastic_cobol/bin/system/arch/ecobol
- Runtime: $EC_HOME/plugins/com.heirloomcomputing.ecd.core_version/elastic_cobol/ecobol.jar
- ETP Runtime: $EC_HOME/plugins/com.heirloomcomputing.ecd.core_version/elastic_cobol/etrans.jar
substituting the following:
- $EC_HOME: the Eclipse installation directory, e.g., /usr/local/eclipse or c:\eclipse
- version: the compiler version, e.g., 12.8.10
- system: the operating system, e.g. windows or linux
- arch: the hardware architecture, e.g., x86 or x86_64
The Elastic COBOL compiler will also run the Java compiler by default after Java source is created. The Java compiler must be in the execution path and supply the Java runtime libraries as part of a classpath. See ecobol Options for detailed explanation of ecobol command line arguments.
$ ecobol -h
Elastic COBOL V18.11.26 Copyright (C) 2010-2018 Heirloom Computing
Elastic COBOL Simple-Style Compiler Options
Use -help or -help:old for expanded list
usage: ecobol [ -option [ param ] ] file(s)
-d Produce listing file & runtime debug info
-p Set COPY library path to parameter
-x Compile and execute (first program in list)
-c Check COBOL syntax (no output)
-t Compile EXEC TRANSACTION constructs
-w Suppress info/warning messages
-v Verbose compilation
$ ecobol -?
Elastic COBOL V18.11.26 Copyright (C) 2010-2018 Heirloom Computing
usage: ecobol [ -option [ param ] ] file(s)
-help Help on Elastic COBOL Options
-help:old Help on Elastic COBOL Deprecated Options
-help:acu Help on Elastic COBOL Acu-Style Options
-h Help on Elastic COBOL Simple-Style Options
-dt Data (0=EC,2=Acu,4=MPE,5=MF,6=RM,7=IBMA,8=IBME,9=
... other advanced compiler flags
To compile and execute myprog.cbl:
$ ecobol myprog.cbl
$ export CLASSPATH=/path/to/ecobol.jar:/path/to/etrans.jar:.
$ java myprog
1 Comments