I am running Ubuntu and trying to learn COBOL. I have dabbled in a few online tutorials but have had inconsistent results with certain programs.
I prefer to use vim in a bash shell; leading me to OpenCOBOL (cobc)
Is there a decent tutorial that will teach me the basics? I have been working through this one.
My issue is that when running some of the example source code, the compiler returns an error when trying to use a "*". It says it is expecting an end of file.
Here is my source code:
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO-WORLD.
ENVIRONMENT DIVISION.
*comment here
DATA DIVISION.
PROCEDURE DIVISION.
DISPLAY 'HELLO WORLD!'.
STOP RUN.
Here is the command I am running:
cobc -x -free -o helloworld helloworld.cbl
Here is the error returned
helloworld.cbl:4: Error: syntax error, unexpected '*', expecting "end of file"