Article 6HED3 [SOLVED] GNU COBOL?

[SOLVED] GNU COBOL?

by
dchmelik
from LinuxQuestions.org on (#6HED3)
Typed (then erased and) copied in and ran this but (on Slackware-stable) got many errors and (on Slackware-current compiled but ran and got) segmentation fault: http://gnucobol.sourceforge.io/histo...lo-World-.html ... never though I'd try because dislike suits, but like BASIC & FORTRAN (similar) and heard one can get high wages with COBOL.

hello.cob
Code:IDENTIFICATION DIVISION.
PROGRAM-ID. hello.
PROCEDURE DIVISION.
DISPLAY "Hello World!".
STOP RUN.Code:d@0.vanaheim:~$ cobc hello.cob
hello.cob:1: error: invalid indicator 'F' at column 7
hello.cob:2: error: invalid indicator 'M' at column 7
hello.cob:3: error: invalid indicator 'U' at column 7
hello.cob:4: error: invalid indicator 'Y' at column 7
hello.cob:5: error: invalid indicator 'U' at column 7
hello.cob:6: error: PROGRAM-ID header missingIf I can get this working, then I want to try '1+1' so I can know some bare minimum basics... would be good to learn subroutines/etc. but so far I tried just 'hello, world' and '1+1' in many languages and COBOL might not be first choice to go further.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments