01/13/12 09:11 - ID#55908
Hello World, Hello COBOL (updated with code))
Well, I got open-cobol to compile and run a simple "Hello Word" program. So it works.
It seems that Cobol is still in the punch card age in which commands have to start in the 8th column. But open-cobol has a freestyle option.
(e:paul) wanted to see some code:
Here's the sort of COBOL"hello world" I remember from my college days:
000100 IDENTIFICATION DIVISION.
000200 PROGRAM-ID. HELLOWORLD.
000300
000400*
000500 ENVIRONMENT DIVISION.
000600 CONFIGURATION SECTION.
000700 SOURCE-COMPUTER. RM-COBOL.
000800 OBJECT-COMPUTER. RM-COBOL.
000900
001000 DATA DIVISION.
001100 FILE SECTION.
001200
100000 PROCEDURE DIVISION.
100100
100200 MAIN-LOGIC SECTION.
100300 BEGIN.
100400 DISPLAY " " LINE 1 POSITION 1 ERASE EOS.
100500 DISPLAY "Hello world!" LINE 15 POSITION 10.
100600 STOP RUN.
100700 MAIN-LOGIC-EXIT.
100800 EXIT.
Here's the same thing freestyled in open-cobol.
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO-WORLD.
PROCEDURE DIVISION.
DISPLAY 'Hello world!'.
STOP RUN.
Permalink: Hello_World_Hello_COBOL_updated_with_code_.html
Words: 117
Location: Buffalo, NY
Last Modified: 01/13/12 09:30
Category: linux
01/12/12 10:33 - ID#55897
Cobol Here I come
Well, there is something called Open Cobol that is Cobol compiler that runs on linux. Fedora has it in it's repositories.
Hopefully, I can get it to work. And code, code, code my way into a new job.
Permalink: Cobol_Here_I_come.html
Words: 72
Location: Buffalo, NY
Last Modified: 01/12/12 10:33
01/12/12 10:25 - ID#55896
Work 1, Beer Club 0
Permalink: Work_1_Beer_Club_0.html
Words: 33
Location: Buffalo, NY
Last Modified: 01/12/12 10:25
Category: polish songs
12/16/11 10:54 - ID#55753
wigs and accordians and
Permalink: wigs_and_accordians_and.html
Words: 10
Location: Buffalo, NY
Last Modified: 12/16/11 10:54
Category: music
12/10/11 10:46 - ID#55695
Rock Lobster Robots
Permalink: Rock_Lobster_Robots.html
Words: 42
Location: Buffalo, NY
Last Modified: 12/10/11 10:46
Category: music
12/10/11 10:42 - ID#55693
Geeks Rock
Permalink: Geeks_Rock.html
Words: 35
Location: Buffalo, NY
Last Modified: 12/10/11 10:42
Category: linux
12/10/11 10:28 - ID#55692
I'm quite fond of Fedora 16
Permalink: I_m_quite_fond_of_Fedora_16.html
Words: 32
Location: Buffalo, NY
Last Modified: 12/10/11 10:28
Category: linux
11/30/11 10:17 - ID#55629
Success! Fedora 16
Double Yay!
Permalink: Success_Fedora_16.html
Words: 14
Location: Buffalo, NY
Last Modified: 11/30/11 10:17
Category: music
11/18/11 10:50 - ID#55546
If it gets too bushy you can trim
Amanda Palmer also does ukelele covers of Lady Gaga. 'nuff said
Permalink: If_it_gets_too_bushy_you_can_trim.html
Words: 43
Location: Buffalo, NY
Last Modified: 11/18/11 10:54
Category: music
06/19/11 10:32 - ID#54540
Wendy MacDonald
Permalink: Wendy_MacDonald.html
Words: 18
Location: Buffalo, NY
Last Modified: 06/19/11 10:59
Author Info
uncutsaniflush