About the COBOL compiler
The language that runs banks. Compiled online. Run COBOL code in your browser with no install and no signup — the editor, the input and the output share one screen. COBOL is executed by a remote runtime: your code is submitted to it and the output is returned to this page.
Press Run to execute the program, edit it and press Run again, or paste your own code over it. Everything you type stays in the page; the editor caches your work locally so a reload does not lose it.
A COBOL example
This is the program the COBOL editor opens with — run it as it is, then change it.
IDENTIFICATION DIVISION.
PROGRAM-ID. STUDENT-REPORT.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 STUDENT-TABLE.
05 STUDENT-ENTRY OCCURS 4 TIMES.
10 STU-NAME PIC X(10).
10 STU-SCORE PIC 9(3).
01 I PIC 9(1).
01 J PIC 9(1).
01 TEMP-NAME PIC X(10).
01 TEMP-SCORE PIC 9(3).
01 TOTAL PIC 9(4) VALUE 0.
01 AVERAGE PIC 9(3)V9(1).
01 AVG-DISPLAY PIC Z(3).9.
PROCEDURE DIVISION.
MOVE "Alice " TO STU-NAME(1).
MOVE 92 TO STU-SCORE(1).
MOVE "Bob " TO STU-NAME(2).
MOVE 87 TO STU-SCORE(2).
MOVE "Charlie " TO STU-NAME(3).
MOVE 95 TO STU-SCORE(3).
MOVE "Diana " TO STU-NAME(4).
MOVE 88 TO STU-SCORE(4).
The editor opens with the full program.
More Systems & Low-Level compilers
Browse all 109 languages — the same editor runs each of them, in the browser or on a shared runner.