fork download
  1. IDENTIFICATION DIVISION.
  2. PROGRAM-ID. ADD.
  3. ENVIRONMENT DIVISION.
  4. DATA DIVISION.
  5. WORKING-STORAGE SECTION.
  6. 77 Idx PICTURE 9(4).
  7. 77 Sum PICTURE 9(6).
  8. 77 X PICTURE X.
  9. PROCEDURE DIVISION.
  10. BEGIN.
  11. ACCEPT X.
  12. MOVE ZERO TO IDX.
  13. MOVE ZERO TO SUM.
  14. PERFORM ADD UNTTI TDX = 1001.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cbl:     7: error: syntax error, on or before 'Sum'
stdout
Standard output is empty