Run serverless COBOL programs on OpenWhisk. Built with Trails.js and Node.
The user sends a POST
request containing COBOL source code, and receives as a response the result of the execution of the program.
- Request:
POST /compileAndRun
{ "options": { "dialect": "cobol2014" }, "source": "identification division. program-id. hello. procedure division. display \"hello world\"." }
- Response:
{ "code": 0, "output": "hello world" }
field | type | description | required |
---|---|---|---|
source |
String |
the COBOL source to compile and run | yes |
files |
Array (File) |
List of files required by the cobol program | no |
args |
Array (String) |
List of arguments to pass into the cobol program at runtime | no |
options |
Object |
List of custom gnucobol compiler flags | no |
The files
array contains File
objects.
field | type | description | required |
---|---|---|---|
name |
String |
Name of the file | yes |
data |
String |
Contents of the file | yes |
Supported COBOL dialects
dialect | description |
---|---|
cobol2014 |
Cobol 2014 Dialect |
cobol2002 |
Cobol 2002 Dialect |
cobol85 |
Cobol 85 Dialect |
ibm |
IBM Dialect |
mvs |
MVS Dialect |
bs2000 |
BS2000 Dialect |
mf |
MicroFocus Dialect |
acu |
ACUCOBOL Dialect |
- COBOL: Up and Running in 3 minutes
- COBOL: Parsing Copybook Files into JSON
- Serverless COBOL on the Cloud: Introduction to cobol.run
- COBOL Programs as Functions: How The cobol.run Cloud FaaS Works, Part 1
MIT