fork download
  1. IDENTIFICATION DIVISION.
  2. PROGRAM-ID ADDITION.
  3. ENVIRONMENT DIVISION.
  4. DATA DIVISION.
  5. WORKING-STORAGE SECTION.
  6. 01 A PIC 99.
  7. 01 B PIC 99.
  8. 01 C PIC 999.
  9. PROCEDURE DIVISION.
  10. DISPLAY "ENTER A".
  11. ACCEPT A.
  12. DISPLAY "ENTER B".
  13. ACCEPT B.
  14. COMPUTE C=A+B.
  15. DISPLAY "SUM IS ",C.
  16. STOP RUN.
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cbl:     2: error: syntax error, on or before 'ADDITION'
stdout
Standard output is empty