Online COBOL Editor.
Draft and review COBOL modules with syntax highlighting tuned for enterprise maintenance workflows.
Completions appear as you type; press Ctrl+Space to open the list. Tab expands snippets where available. Find: Ctrl+F (Cmd+F on Mac). Format: toolbar button or Ctrl+Shift+B for supported languages.
Choose editor font size in pixels
Draft and review COBOL modules with syntax highlighting tuned for enterprise maintenance workflows.
Related technologies: IBM z/OS, CICS, Batch JCL pipelines, DB2 — see also SQL Editor, Fortran Editor.
Starter snippet
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO-WORLD.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-NAME PIC X(20) VALUE 'CONVERSIONTAB'.
PROCEDURE DIVISION.
DISPLAY 'HELLO ' WS-NAME.
STOP RUN.Structured program
IDENTIFICATION DIVISION.
PROGRAM-ID. COBOL.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-COUNT PIC 9(4) VALUE 0.
PROCEDURE DIVISION.
DISPLAY 'START'.
STOP RUN. Variables
01 WS-COUNTER PIC 9(5) VALUE 0.Loops
PERFORM VARYING WS-I FROM 1 BY 1 UNTIL WS-I > 10Functions / methods
CALL 'SUBPROG' USING WS-RECORD.Comments
*> or * in fixed columns depending on dialectData definitions
01 WS-RECORD.
05 WS-ID PIC X(10).
05 WS-AMT PIC 9(7)V99.PERFORM loop
PERFORM VARYING WS-I FROM 1 BY 1
UNTIL WS-I > 10
DISPLAY WS-I
END-PERFORM Batch read loop
* COBOL batch skeleton
READ INPUT-FILE
AT END SET EOF-FLAG TO TRUE
NOT AT END
PERFORM PROCESS-RECORD
END-READ - Which COBOL dialect is highlighted?
- Highlighting follows common enterprise COBOL constructs; verify vendor-specific verbs on your compiler.