Skip to the posts
Buffalo's neighborhood journals since 2003 🌱 Plant🌶️ Spice☀️ Light🌙 Dark

uncutsaniflush’s journal

Posts from January 2012

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.

@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.

Cobol Here I come

·

Based on conversations at @PMT's New Years party, being a dinosaur with some vague 30 year old course work in Cobol makes me somewhat marketable if I brush up on my Cobol coding skills.

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.

Work 1, Beer Club 0

I hope y'all had a fun time at Beer Club. Perhaps if Jupiter aligns with Mars and Peace guides the Planets or I get fired, I'll make it to Beer Club in February.

Rock Lobster Robots

·

From the same guy who gave us I love the guitar playing machine. The machine plays a guitar with 4 strings just like Ricky Wilson. I am in awe.


Geeks Rock

·

I knew scanners could produce sound but I never even considered the idea of hard drives as precussive devices. House of the Rising Sun played by machines. Geeks Rock


I'm quite fond of Fedora 16

·

FWIW, I think it is better than Fedora 15. It's better for music production than Ubuntu Studio. Everything works. But, of course, I'm not trying to use R like my wee e:sisteryn.

If it gets too bushy you can trim

·

Amanda Palmer and the Young Punx featuring Peaches. The name of the song is "Map of Tasmania". Workplace warning: If Peaches is involved someone might be offended.



Amanda Palmer also does ukelele covers of Lady Gaga. 'nuff said