tags:

views:

198

answers:

3

What is COBOL used for?

+1  A: 

COBOL is used to torture college student in the first year of their study in the name of Business Data Processing. Some illusive s/w professionals that hardly exists are paid too much for their COBOL programming skills.

this. __curious_geek
Snarky, and not very helpful
Michael Petrotta
I like the joke :)
alxx
Community wiki or comment, much?
BoltClock
+1, Answer is definitively spot on!
grenade
one life why so serious. And you asked it on a weekend. m not a COBOL hater and I know its worth and importance. But thought lets have some fun otherwise!
this. __curious_geek
Probably the best answer for a really bad question
Chris Lively
Excuse me, but as somebody who has worked in COBOL, I fail to see how you can be paid too much for having to put up with it.
David Thornley
+5  A: 

COmmon Business Oriented Language 'invented' by Grace Murray Hopper ( read about her she is one one of the pivotal people in the development of computing as we know it today). The general idea was to produce a language that was English based as opposed to mathematically based or expressed as such in the code.

Very simply put you would use a construct like

ADD YEARS TO AGE

as opposed to

age = age + years

or

age += years

Appearing in the early 1960's it was massively adopted for processing in the area of business. There are still a large volume of applications built in COBOL still running and maintained and it is still very much alive and kicking. Around 1997 Gartner reported that 80% of the world's business ran on COBOL with over 200 billion lines of code in existence and with an estimated 5 billion lines of new code annually. So you could do a lot worse than learn COBOL to ensure you have a job for life.

The structure of a cobol program is summarised in the Mnemonic In Every Damn Program. Meaning that there is an:-

  • Identity division giving information about the program
  • Environment Division describing the hardware
  • Data Division (In my day we used CODASYL now better known and newly re-invented as no-sql
  • Programming division 'Here be code'

Because of the legacy from punch cards (yes i used them as well) you always started the code by indenting 8 spaces in else some compilers would not recognise it (shades of Python where whitespace is significant).

It is of course a compiled language.

Where is it used. Governments, the Military Businesses of all sizes but usually the larger corporates so i suppose you could say everywhere and it is used to run governments, and the Military and business's. I believe the US's social welfare system runs on several million lines of Cobol written in the mid 60's. Experian a large UK based credit rating company uses it throughout there operation with interfaces to the web. Again in the UK most of the Building Societies and Banks run their core systems on it.

I could go on but i won't go and read about it. And by the way you can even get Object Oriented Cobol if you want

PurplePilot
First Cobol standard was Cobol-60. Work was going on since 1959 formally, and it drew on prior art. It wasn't 'invented' by Admiral Hopper: she ran the project.
EJP
I think it drew heavily on FLOW-MATIC and i put the invented in inverted commas to sort of indicate that Grace didn't really invent it. It was of course put together by a committee much in the same way as we still do. There is nothing really original and of course COBOL grew out of work that had been done before in one form or another. On a minor note to all her other achievement Grace was the last US Navy officer who had served in WW2 to retire from the navy.
PurplePilot
A: 

Cobol is used primarily for financial processing. Any time banks, brokerage houses, credit card vendors, et al are doign business, there will be Cobol in the mix.

Joe Zitzelberger