fork download
  1. IDENTIFICATION DIVISION.
  2. PROGRAM-ID. HELLO-WORLD.
  3. AUTHOR. Antonio Neuton da Silva JĂșnior
  4. DATE-WRITTEN. 03/02/2011.
  5. DATE-COMPILED.
  6. *
  7. ENVIRONMENT DIVISION.
  8. *
  9. DATA DIVISION.
  10. *
  11. PROCEDURE DIVISION.
  12. MOVE FUNCTION CURRENT-DATE TO WS-DATA-CORRENTE
  13. STRING
  14. 'IPIRANGA, ' DELIMITED BY SIZE
  15. WS-DIA DELIMITED BY SIZE
  16. ' de ' DELIMITED BY SIZE
  17. NOME-MES ( WS-MES ) DELIMITED BY SPACES
  18. ' de ' DELIMITED BY SIZE
  19. WS-ANO-INTEIRO DELIMITED BY SIZE
  20. '.' DELIMITED BY SIZE
  21. INTO WS-DATA-EXTENSO
  22. END-STRING
  23. DISPLAY 'Data do dia ...... : ' WS-DATA-EXTENSO
  24. GOBACK.
  25. *
  26. STOP RUN.
  27.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cbl:    12: error: Invalid argument expecting variable, on or before 'WS-DATA-CORRENTE'
prog.cbl:    13: error: undefined variable WS-DATA-CORRENTE, on or before 'STRING'
prog.cbl:    15: error: Invalid argument expecting variable, on or before 'WS-DIA'
prog.cbl:    17: error: Invalid argument expecting variable, on or before 'NOME-MES'
prog.cbl:    17: error: syntax error, on or before '('
prog.cbl:    17: error: variable expected, on or before '('
prog.cbl:    17: error: Invalid argument expecting variable, on or before 'WS-MES'
prog.cbl:    17: error: variable expected, on or before ')'
prog.cbl:    19: error: Invalid argument expecting variable, on or before 'WS-ANO-INTEIRO'
prog.cbl:    21: error: Invalid argument expecting variable, on or before 'WS-DATA-EXTENSO'
prog.cbl:    22: error: undefined variable WS-ANO-INTEIRO, on or before 'END-STRING'
prog.cbl:    22: error: undefined variable WS-DATA-EXTENSO, on or before 'END-STRING'
prog.cbl:    23: error: Invalid argument expecting variable, on or before 'WS-DATA-EXTENSO'
prog.cbl:    24: error: variable WS-DATA-EXTENSO not defined,0, on or before 'GOBACK'
prog.cbl:    24: error: undefined variable WS-DATA-EXTENSO, on or before 'GOBACK'
stdout
Standard output is empty