fork download
  1. identification DIVISION.
  2. PROGRAM-ID. PROGRAM1.
  3. AUTHOR. Antonio Neuton da Silva Júnior
  4. DATE-WRITTEN. 10/02/2011.
  5.  
  6. ENVIRONMENT DIVISION.
  7.  
  8. DATA DIVISION.
  9. WORKING-STORAGE SECTION.
  10. 77 nome PIC A(010) value "João".
  11. 77 myvar2 PIC X(010) value "Teste".
  12. 77 a PIC 99V999 VALUE 12.236 .
  13. 77 b PIC 99V99 VALUE ZERO .
  14. 77 c PIC 9V9 VALUE 3.9 .
  15. 77 d PIC 9v9 VALUE 2.1 .
  16.  
  17. PROCEDURE DIVISION.
  18. DISPLAY "myvar é ", myvar
  19. IF a < b
  20. ADD a TO b ROUNDED
  21. DISPLAY "b é ", b
  22. ELSE
  23. ADD c TO d
  24. DISPLAY "d é ", d
  25. END-IF
  26. DISPLAY "myvar2 é ", myvar2
  27. STOP RUN.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cbl:    18: error: Invalid argument expecting variable, on or before 'myvar'
prog.cbl:    19: error: variable MYVAR not defined,0, on or before 'IF'
prog.cbl:    19: error: undefined variable MYVAR, on or before 'IF'
stdout
Standard output is empty