Slashdot Mirror


COBOL Turning 50, Still Important

Death Metal writes with this excerpt from a story about COBOL's influence as it approaches 50 years in existence: "According to David Stephenson, the UK manager for the software provider Micro Focus, 'some 70% to 80% of UK plc business transactions are still based on COBOL.' ... Mike Gilpin, from the market research company Forrester, says that the company's most recent related survey found that 32% of enterprises say they still use COBOL for development or maintenance. ... A lot of this maintenance and development takes place on IBM products. The company's software group director of product delivery and strategy, Charles Chu, says that he doesn't think 'legacy' is pejorative. 'Business constantly evolves,' he adds, 'but there are 250bn lines of COBOL code working well worldwide. Why would companies replace systems that are working well?'"

66 of 314 comments (clear)

  1. Oo, oo, oo! I know! by Samschnooks · · Score: 5, Insightful

    Why would companies replace systems that are working well?

    Because the director of IT or whatever his title is will want to be able to put on his resume that HE moved a company from a "Legacy" and "Outdated" system to a modern "web based solution" that enables "greater productivity" among the workforce saving "millions of dollars". Now, he can put that on his resume and go for the CTO, CIO, or whatever jobs.

    I've seen it and it works.

    1. Re:Oo, oo, oo! I know! by Jurily · · Score: 3, Informative

      Because the director of IT or whatever his title is will want to be able to put on his resume that HE moved a company from a "Legacy" and "Outdated" system to a modern "web based solution" that enables "greater productivity" among the workforce saving "millions of dollars". Now, he can put that on his resume and go for the CTO, CIO, or whatever jobs.

      If and only if they're able to pull it off. It's also a nice way to end your carreer if you fail.

    2. Re:Oo, oo, oo! I know! by fuzzyfuzzyfungus · · Score: 4, Funny

      I'm guessing that this story involves enough java to float a battleship; but not quite enough to keep the interface responsive...

    3. Re:Oo, oo, oo! I know! by trash+eighty · · Score: 5, Insightful

      no if you fail you just get promoted out of harms way

    4. Re:Oo, oo, oo! I know! by plopez · · Score: 4, Insightful

      If and only if they're able to pull it off. It's also a nice way to end your carreer if you fail.

      no, you collect a bonus and bail out before it crashes in flames leaving someone else holding the bag. See also the bank failures for examples of this. See a pattern? I hate MBAs.

      --
      putting the 'B' in LGBTQ+
    5. Re:Oo, oo, oo! I know! by freegamegallery · · Score: 2, Interesting

      Well, yes, that could be part of it. The other part of it is that in smaller shops you have a talent pool to pick from, and getting cobol programmers isn't easy, especially ones who are also proficient with some of the modern programming languages and web development. I'm not saying it can't be done, but its harder to find those folks. Plus, cobol programmers are usually older, have much experience in the industry, and consequently command a higher salary. Sticking with the "more modern" technologies in my mind really translates into using the technologies that are most popular giving you a large pool of applicants to hire from at an affordable rate.

      --
      Play Free Games at FreeGameGallery.com. We have Flash Games for Everyone!
    6. Re:Oo, oo, oo! I know! by Tubal-Cain · · Score: 5, Funny
      How can I be more alert in the morning?

      add more Java

      Hey, you're right! That really is the solution!

    7. Re:Oo, oo, oo! I know! by jlp2097 · · Score: 2, Interesting

      Your answer, while maybe true in some rare cases, just shows the ignorance of some IT people to business decisions. Maintaining such an old piece of technology might actually result in higher costs than developing a new system based on current technology. Why?

      1. People. Probably the most important reason. Cobol is not exactly a widely taught language. People knowledgable in Java, C#, PHP and other languages are younger, much easier to find and thus cheaper. People with real solid Cobol experience are actually quite expensive nowadays (supply->demand).

      2. Extensibility and maintainability. While maintainability might be ok, extensibility is a bitch. Connectors to Web Services? Talking to the myriad of other web apps you have inhouse? Accessing that SAP system you have?. There might be some solutions for every one of those problems. Hell, they even made Object Oriented Cobol a decade or so. But all of these (proprietary) solutions cost much more money than simply using a new language / technology which comes with most of these included.

    8. Re:Oo, oo, oo! I know! by coryking · · Score: 4, Interesting

      Depends. Staffing is one bit of the equation. You've also got to factor in "how easy is it to extend our existing application". Can you tie your COBOL stuff into your customer-facing billing system on your website? Can your call center be updated so the CSR's are all doing data entry on a web app or a "real" desktop application? I'm sure both are possible but I'm also sure both have price structures that are insanely high, but just a notch less insane as "hire a team of devs to dump COBOL"

      There is one more thing I'll toss out, but I'm not sure about. Location. If you are located in Bumbleskunk, USA, the talent pool is pretty small and you will have a hard time getting programmers to relocate (after all, if your company sucks, they are basically gonna have to move again to work some place else). I wonder if there is any correlation between "Uses COBOL" and "Is located in Bumbleskunk". In other words, how many companies headquartered in say, Boston or Silocon Valley use COBOL vs how many companies in say Cowtown use COBOL.

    9. Re:Oo, oo, oo! I know! by that+this+is+not+und · · Score: 2, Funny

      Think of it this way. If Apple came out with a new iHeart would you have surgery to replace your perfectly functioning heart with an artificial one just so you can play mp3s?

      Apple's marketing department thought about that long and hard. Then they shrugged and acknowledged that the risk was too great. If they killed off their nosiest fanboys in a mishap, where would they be then? There's not much of a future selling iTunes off bottlecaps from Pepsi bottles.

    10. Re:Oo, oo, oo! I know! by nurb432 · · Score: 3, Interesting

      The last CFO i worked for did that. Was hired to 'rescue' the company but instead he ruined the company, fired most of us that stuck with the company even during the dark times. then he left, with a bonus. ( i hear he destroyed the next one too )

      1 year later the company filed bankruptcy.

      In reality it was the best thing for me personally, it got me out of the slowly dying industry i had been in for 20 years just before the collapse. But the way it went down was just wrong.

      --
      ---- Booth was a patriot ----
    11. Re:Oo, oo, oo! I know! by blind+biker · · Score: 3, Informative

      This is not necessarily tied to MBAs as much as it's tied to corporate psychopaths - the ones most likely to succeed in the modern chaotic corporate world (especially in larger publicly-traded companies). They will lie, manipulate and use everything and everybody only to further their own interest. If the company, their workers or even the economy of the whole USA will suffer, they won't care one bit - no conscience.

      --
      "The agriculture ministry is not in charge of Gundam" - Japanese ministry official.
    12. Re:Oo, oo, oo! I know! by windsurfer619 · · Score: 2, Insightful

      I hear Java is like violence. If it doesn't work, use more of it.

      --
      -stolen from someone's sig

  2. Why replace it? by Anonymous Coward · · Score: 4, Funny

    Why would companies replace systems that are working well?

    So I can have a fucking job?

    1. Re:Why replace it? by Extremus · · Score: 3, Funny

      I am willing to offer you a good one, but I couldn't find your address anywhere.

    2. Re:Why replace it? by artor3 · · Score: 4, Informative

      Learn COBOL, and you always will. My dad is a COBOL programmer for the NY state government. According to him, around 95% of their COBOL programmers are within 10 years of retirement. The youngin's (as he calls them) are in their mid to late forties.

      If you know COBOL, you are absolutely guaranteed a job there.

  3. Cool by bigsexyjoe · · Score: 4, Interesting

    Does that mean my Java skill set is likely to keep me employed for the next 30 to 40 years?

  4. Define "working well" by Just+Some+Guy · · Score: 5, Interesting

    Before I start, I know all too well that you can write good or terrible code in any language. Still, most COBOL code I've seen is written to run well on hardware that is no longer relevant. A recent experience with an ex-coworker illustrated this pretty well for me:

    Said fellow, call him "Joe", had about 30 years of COBOL experience. We're a Python shop but hired him based on his general coding abilities. The problem was that he wrote COBOL in every language he used, and the results were disastrous. He was used to optimizing for tiny RAM machines or tight resource allocations and did things like querying the database with a rather complex join for each record out of quite a few million. I stepped in to look at his code because it took about 4 hours to run and was slamming the database most of the time. I re-wrote part of it with a bit of caching and got the run-time down to 8 seconds. (Choose to believe me or not, but I'd testify to those numbers in court.) I gave it back to him, he made some modifications, and tried it again - 3 hours this time. I asked him what on Earth he'd done to re-break the program, and he'd pretty much stripped out my caching. Why? Because it used almost half a gig of RAM! on his desktop and he thought that was abhorrent.

    Never mind that it was going to be run on a server with 8GB of RAM, and that I'd much rather use .5GB for 8 seconds than 1MB for 3 hours of intense activity.

    So Joe isn't every COBOL programmer, but you and I both know that he's a lot of them. But back to the direct point, how much of that 250GLOC was written with the assumption that it'd be running on 512KB machines or with glacial hard drives or where making the executable as tiny as possible was an extreme priority? Doing things like storing cache data in hash tables would've been obscenely expensive back in the day, so those old algorithms were designed to be hyper-efficient and dog slow. Whether you think that constitutes "working well" is up to you.

    --
    Dewey, what part of this looks like authorities should be involved?
    1. Re:Define "working well" by thethibs · · Score: 5, Insightful

      Nice story, but it doesn't say anything about COBOL.

      I have a similar story about 30 programmers who spent two years writing java code and delivering nothing useful because the requirement called for two different architectures: one best served with a batch system, the other best served with a real-time system. What they need is COBOL and C, but what they know is java and struts. It's been another four years since I ran screaming from the building and they still haven't delivered anything useful.

      Inept programmers will screw things up in any language.

      --
      I'm a Programmer. That's one level above Software Engineer and one level below Engineer.
    2. Re:Define "working well" by TheRaven64 · · Score: 5, Insightful

      You see that kind of thing from lots of programmers who only know one language well. This is why a good programmer always keeps up with modern architectures. I've seen C programmers who put things in globals rather than passing them on the stack, because that was faster before caching (now it breaks locality of reference, and moves something that was in a register or on the stack to an indirect reference where it needs extra loads and causes extra cache churn).

      I've seen programmers who grew up with Pascal carefully turning multiplies into sequences of adds and shifts. Great, except that something like the Athlon can do two multiplies in parallel, but only one shift at a time (because most code contains a lot more multiplies than shifts), stalling the pipeline.

      Another common issue is aggressively testing for potential special cases for optimising, ignoring the fact that branches are very expensive on most modern CPUs and the cost of the checks is now often greater than the saving from shortcutting the special cases.

      Java programmers are not immune to this, and often optimise based on old versions of the JVM. One favourite is to add finally everywhere, making the code very rigid, believing this makes it faster. In a modern JVM, finally is completely ignored; the VM already knows if a class is not subclassed and will do the same optimisations whether it is declared finally or not.

      There's a reason why the rules for optimisation are:

      1. Don't.
      2. Don't yet (experts only).

      If you write good algorithms, your compiler will usually produce reasonable code. If this isn't fast enough, then make sure you really understand how your VM and target CPU work, before you try optimising. The experts only part isn't a joke.

      --
      I am TheRaven on Soylent News
    3. Re:Define "working well" by Just+Some+Guy · · Score: 4, Interesting

      Nice story, but it doesn't say anything about COBOL.

      I think it says a lot about The COBOL Way, or at least the way things were done when those ancient codebases were being written.

      --
      Dewey, what part of this looks like authorities should be involved?
    4. Re:Define "working well" by david.given · · Score: 3, Insightful

      One favourite is to add finally everywhere, making the code very rigid, believing this makes it faster.

      I think you mean final here, no? finally does something else.

      1. Don't.
      2. Don't yet (experts only).

      Very true.

      I'd also add the additional rule: You don't know it's slow until you've benchmarked it. All too often I have seen, and I should add that I've perpetrated this myself, people spend ages painstakingly optimising parts of a system that felt like they were cause speed problems, when actually they weren't.

      I once spent about two or three months designing and implementing a clever caching system for properties in a UI framework. It was subtle and complex, and I was very proud of it, and it was a total waste of time. We eventually threw it all away and stored the properties in an AVL tree. Yes, this involved looking up the properties in the inner loops of all the UI component redraw methods, but compared to the amount of work of touching every pixel on the screen, this was trivial. And it increased flexibility, reduced complexity and code size, and vastly improved maintainability.

    5. Re:Define "working well" by TheRaven64 · · Score: 4, Informative

      I think you mean final here, no? finally does something else.

      Yes, sorry, final.

      And it increased flexibility, reduced complexity and code size, and vastly improved maintainability.

      Reducing code size is important for three reasons:

      1. It means that a single human can understand more of the program at a time.
      2. It means that there are fewer places to look for bugs.
      3. It reduces instruction cache usage.

      This last part is something I should probably have mentioned in the last post. Instruction cache churn is one of the biggest performance killers on modern CPUs. It is particularly instructive to compare C++ templates and Objective-C. In C++, your compiler will generate a new set of functions for every template instantiation (well, not quite, but close enough). In Objective-C, it will only emit one copy of a method and then use run-time lookups to determine how things work. The Objective-C solution to the problem is slower. You can generate lots of microbenchmarks that prove that it's slower. Except, somehow, the C++ program ends up being slower overall, because the Objective-C program can keep most of the code in cache, while the C++ program is constantly thrashing the instruction cache. If you run a couple of programs concurrently, each one gets even less cache usage, so you end up spending even more time waiting for main memory.

      This is almost a corollary to your comment: it isn't slow until you test it in place. On a modern computer there are so many potential sources of performance issues that you can't always take a microbenchmark and generalise it. There are lots of cases where one option is slower when you do it once but faster when you do it a few million times, or faster when you do other seemingly-independent things. Microoptimisations are no longer a good way of ensuring that an entire program runs quickly.

      --
      I am TheRaven on Soylent News
    6. Re:Define "working well" by McSnarf · · Score: 3, Insightful
      Hmmm...

      This revived some slightly old memories.
      I remember a talk by the local FORTRAN compiler guru in the mid-70s.

      After talking about some intricacies of the IBM FORTRAN H compiler, he gave some examples of the compiler's abilities. Summarizing it with: Don't try too hard to optimize. Leave it to the compiler. It usually knows what it is doing.

      And that sums it up rather nicely.
      I'd rather work on code written by someone else who concentrated on writing readable code than on code written by someone trying to be clever.

      (Note to people born after around 1980: Yes, we too believed it would be cool to write cool, complex code, with the odd assembler routine thrown in for good measure (which, btw. didn't really save much time), badly documented and demonstrating our superiour coding abilities. Looking back, we were idiots who should have been fired. Don't repeat our mistakes, OK?)

    7. Re:Define "working well" by Just+Some+Guy · · Score: 2, Insightful

      I'm sure you're right for new code written today. I am equally sure that programmers 30 years ago did not have that luxury. Seriously, a 4GB standard allocation? An IBM 4341 from 1979 had up to 16MB of RAM. The article quotes people saying that code 30-50 years old still works well, but I would posit that code that old was probably written with assumptions that are no longer sensible today, and at the very least should be re-evaluated instead of being allowed to blindly accrete new layers.

      --
      Dewey, what part of this looks like authorities should be involved?
    8. Re:Define "working well" by mapkinase · · Score: 2, Insightful

      He might also have a COBOL-unrelated disease called "optimisis", when a programmer tries to write optimize code right from the beginning 100%.

      It is a valuable practice if you are using conventionally accepted optimization for common things, but it leads to disastrously unscalable code heavily based on logic trees.

      I work with a biologist who gives me decision trees and modifies them every day. If I would try to optimize the logic in those trees by rearranging logical expressions and making shortcuts, I would be able to apprehend zilch in my code in a week.

      --
      I do not believe in karma. "Funny"=-6. Do good and forbid evil. Yours, Oft-Offtopic Flamebaiting Troll.
    9. Re:Define "working well" by mcrbids · · Score: 3, Insightful

      There's a reason why the rules for optimisation are:

            1. Don't.
            2. Don't yet (experts only).

      If you write good algorithms, your compiler will usually produce reasonable code. If this isn't fast enough, then make sure you really understand how your VM and target CPU work, before you try optimising. The experts only part isn't a joke.

      Except that there's a clear and definite time to optimise - when performance is in the crapper!

      Just 2 days ago, I heard complaints about a well-written (but very old!) report that was still taking as long as 5 minutes to run when accessing a large data set. Taking a look, I found that it was using an old template system for output using regex, and for a complex report, the regex was killing the server. So I replaced it with a different template engine using simple string replacement, and reduced > 5 minutes reporting time to about 15 seconds. Further looking there found a simple 3-element index in the database cut the time down to 2 seconds.

      Now the report comes up INSTANTLY in most cases.

      Optimising is necessary - but only AFTER the fact!

      --
      I have no problem with your religion until you decide it's reason to deprive others of the truth.
    10. Re:Define "working well" by Unoti · · Score: 3, Interesting

      You don't know it's slow until you've benchmarked it.

      This is similar to a mantra of continuous improvement: "In God we trust. All others must bring numbers." The point of that saying is that if you want to make a change to the process, you must support your assertions with real metrics.

    11. Re:Define "working well" by linuxrocks123 · · Score: 3, Interesting

      > I've seen programmers who grew up with Pascal carefully turning multiplies into sequences of adds and shifts. Great, except that something like the Athlon can do two multiplies in parallel, but only one shift at a time (because most code contains a lot more multiplies than shifts), stalling the pipeline.

      That strength reduction of multiplication to bit shifting might not be valuable anymore for modern CPUs surprised me, so I looked up the instruction latency and throughput for the Core 2. To see for yourself, download http://download.intel.com/design/processor/manuals/248966.pdf and look at Appendix C.

      The timings show that integer multiply, IMUL, is still quite a bit slower from the bit shift instructions (SHL/SHR). So, turning multiplies into adds and shifts is still a Good Thing.

      However, these days, a compiler can do this type of thing for you much of the time, so doing the transformation by hand is usually not necessary. Also, since optimizing the source code in this way does take time and decreases source readability, the only cases where people should really still be doing manual strength reduction are in performance-critical code where the compiler, for whatever reason, is missing the optimization opportunity.

      ---linuxrocks123

      --
      vi ~/.emacs # I'm probably going to Hell for this.
    12. Re:Define "working well" by TheRaven64 · · Score: 3, Informative

      You are missing the point. When you pass something as a function parameter, it is either in a register, or in a bit of memory that is guaranteed to be in the cache and will hopefully (e.g. on modern x86 chips) be aliased with some hidden registers. The cost of accessing it is zero. If you put the data in a global, then you are accessing it via two more levels of indirection - read up on how your linker works - and so you are requiring at least one, probably two, more cache lines to be used and an extra set of load and store instructions for something that could otherwise stay in a register.

      --
      I am TheRaven on Soylent News
  5. Re:COBOL Jokes by larry+bagina · · Score: 4, Funny

    have you heard about object oriented cobol?

    It's called ADD 1 TO COBOL GIVING COBOLPLUSONE

    --
    Do you even lift?

    These aren't the 'roids you're looking for.

  6. Perl, it's the new COBOL by Anonymous Coward · · Score: 2, Insightful

    COBOL's still around, will perl last as long?

    For instance there is now OO COBOL but the only people that use it are COBOL programmers who are stuck, perhaps because of their company's dictates, perhaps by choice, with COBOL. In the same way perl may be heading towards irrelevance wrt "mainstream" language. I've written commercial perl in the past, it was a pain then and it's still a pain now. The thing is that now there are alternative languages in the same space (python, ruby etc., php for web side) that do the "perl thing" better than perl.

    Perl was great, it introduced many people to programming, just like COBOL did. But now it's time to move on. To move on to languages that learnt from perl, that improved on it, that don't have to drag around a syntax and culture that values neat tricks and trying to guess what the programmer really meant over providing the needed building blocks and letting you build code that does what you say, not what it thinks it heard you say. Or even, dare I say it, to move on to languages outside the perl family for some programming and choose the right tool for the job for a change.

    I'd prefer to think of this as provocative rather than a flame, there is a difference you know.

    1. Re:Perl, it's the new COBOL by coryking · · Score: 2, Insightful

      You know, I guess it depends. I wouldn't port an application from Perl to something else. But I'm not sure I'd base a new project on Perl either.

      There are some things about perl that could be fixed that might change my mind:

      1) Dump Perldoc and liberally rip from javadoc and XML comments. I know both of these got their start from perldoc, but perldoc needs to catch up.
      2) Make sure the IDE actually uses said docs. Once your IDE's intellesense sucks up your comments and uses them while you are typing in a method, you are rewarded for documenting your stuff. Nothing like positive feedback to encourage good habits.
      3) Finish EPIC. Perl needs IDE support. Syntax coloring and auto-indentation does not make for an IDE.
      4) Get rid of this my $blah_param = shift; crap and start making function declarations that work like everybody else: sub myDopeFunction($blah_param){}. This coupled with perldoc's suckage lead to hard to maintain code
      5) Give a couple million to the Template::Toolkit guys. They rock.
      6) Mystery option.

  7. DOH! by Daswolfen · · Score: 3, Funny

    That's what I get get for learning FORTRAN in college rather than COBOL...

    at least my mad HTML skills..

    oh wait... all websites are in FLASH or PHP now...

    DOH!

    Ok.. im going back to watch a movie on my Betamax or HD-DVD player....

    --
    Don't rush me, Sonny. You rush a miracle man, you get rotten miracles.
    1. Re:DOH! by Brandybuck · · Score: 3, Interesting

      Believe it or not, there is a LOT of Fortran out there. I've run across quite a bit of it in the past few years. A lot of scientific, engineering and other number crunching apps were written in Fortran, and there's no reason to rewrite them just because they're thirty years old. The apps might have brand new GUI and visualization front ends, but deep in the heart there is some Fortran code encapsulating the domain specific math.

      --
      Don't blame me, I didn't vote for either of them!
    2. Re:DOH! by mrphoton · · Score: 2, Interesting

      That is so not true. Fortran is a very good very fast number crunching language. The inbuilt matrix functions and complex number handling is way better and smoother than C or C++. Plus the GNU compile collection now supports it. When you need to do lots of number crunching on a super computer fortran is not a bad choice at all.

  8. Comment removed by account_deleted · · Score: 2, Funny

    Comment removed based on user account deletion

  9. Re:COBOL Jokes by TheRaven64 · · Score: 3, Interesting

    Surely you mean ADD 1 TO COBOL GIVING COBOL. In C, ++ is an increment, not an add-and-assign-to-new-variable operator.

    --
    I am TheRaven on Soylent News
  10. Adequate Languages by j.+andrew+rogers · · Score: 3, Insightful

    COBOL is a perfect example of an "adequate" language, like most programming languages that are in common use. Adequate languages linger forever if there is a tool chain to support them because there is little in the way of economic rationale for replacing them.

    The reason adequate languages proliferate over the long term is that only inadequate languages get replaced, and "ideal" languages become hopelessly politicized by purists and ideologues, leaving the adequate, practical, boring languages as the sound business choice. It is a real-world example of perfect being the enemy of good enough, but for economic reasons good enough always wins.

  11. COBOL, not so bad by Ancient_Hacker · · Score: 3, Insightful

    As just one data point, a certain place replaced a COBOL app that ran with millisecond response time just fine on a 2 megabyte 1 MIPS mainframe, replaced it with a spankin' fresh Java app that ran about 2000 times slower on an 8 gig 16-CPU, 800MHz very expensive water-cooled mainframe.

    Now it could have been due to having a bunch of neophyte Java weenies doing the coding, but I'm just sayin', when there's three orders of speed and 3.5 orders of RAM, there may be something significant in the implementation language.

  12. Live a passionate life by cryfreedomlove · · Score: 3, Interesting

    When I was working on my CS undergrad degree, more than one professor told me that I was really limiting my job prospects because I declined to take the elective COBOL classes. I knew enough about COBOL then to know that I could not drag myself out of bed in the morning to make a living with it.

    The ranks of COBOL programmers out there are living drone like lives without passion or joy. That's not for me. I code for the love if it.

  13. Design by mrlibertarian · · Score: 2, Interesting

    Why would companies replace systems that are working well?

    The question is not, 'Does the code work?', the question is, 'Does the code follow good design principles?' If the answer is 'No, the code is not well-designed', then maintenance can be very costly. I like the snippet from this page:

    "I was once told by an instructor in a design patterns class that the Y2K problem wasn't caused by using 2 digits to represent 4. Instead, it was caused by doing so all over the place. While the reality of the situation is a little more complicated than that, the principle is true. If the date handling code had been all in one place, a single change would have fixed the whole codebase rather than having to pull tons of Cobol coders out of retirement to fix all the business applications."

  14. Skill Sets are disappearing by 1c3mAn · · Score: 4, Insightful

    Why is no one updating Cobol code? Because the skill to interact with other systems is disappearing.

    As a Mainframe Utilities Programmer I hear it from customers all the time. "We can't touch that system because the guy who wrote it retired." System here just represent the code, but also the server backend stuff like database design.

    I have heard stories of an IT department being 10 man team. In the 80s that team had everyone dedicated in maintaining the mainframes. Now, they still have 10 people but only 1 person is there to work on the Mainframe.

    So now you have code from the 70s that no one understands, running a mission critical application, and you think the IT manager is going to touch it? He is praying it doesnt break on his watch or he might get a call from the COO. Even if it breaks, it is better to patch it then rewrite it because the database behind it is so vital to all the rest of the application that it cant be changed either.

    The issue mainly is that no one is teaching old skills anymore. Skills that are still required, but really arent 'sexy' for young college students to learn. Even the name "Mainframe" has grandfather connotation to it while if people actually looked at the IBM Z Servers, one would see how high tech these systems actually are.

    1. Re:Skill Sets are disappearing by 1c3mAn · · Score: 2, Insightful

      Why do people always think it is about speed. It isnt. Mainframes are not super computers. They dont really need to be able to have very high processing power, what makes mainframes great is their storage movement capabilities. 2 billion transactions a day is a LOT of data to be thrown around, and a mainframe can easily handle that.

      Beowulf Cluster? Not so much.

      Reliability and redundancy is unmatched in a mainframe. There is a reason why financial institutions run Mainframes. Because that data really cant be lost.

      Mainframe was called Dead in the early 90s and companies tried to switch to open systems and FAILED miserably. 20 years later and most Fortune 1000 companies still use a Mainframe, because nothing comes close to what they do.

    2. Re:Skill Sets are disappearing by Pig+Hogger · · Score: 3, Insightful

      If by "high tech" you mean "pay $250,000 for the same speed you can get on a commodity desktop in 6 months"... then sure.

      People realized how stupid it was to waste money on mainframes when commodity hardware is moving so quickly.

      "Commodity" desktops will never be able to process 2500 simultaneous transactions in the same database. Even in Beowulf clusters. This is why there is still some big iron around.

    3. Re:Skill Sets are disappearing by ivoras · · Score: 2, Interesting

      http://www.kaltenbrunner.cc/blog/index.php?/archives/21-8.3-vs.-8.2-a-simple-benchmark.html Not exactly the physical definition of simultaneous but then... the mainframe is more of a big-redundant-CPU machine rather than a 2500-core machine so in any case the "simultaneous" aspect is moot. Note that PG is ACID and that the result will approximately be the same even with a much bigger database because disk IO is starting to be the primary bottleneck here.

      --
      -- Sig down
  15. Re:2 jokes, 1 question by berend+botje · · Score: 4, Insightful

    When you have working code in COBOL, really battle-hardened proven-beyond-doubt COBOL code, would you really trust a mechanical translation into another language?

    I wouldn't, no way! And there is no way to completely test the new code either, as the specs never existed or at least are missing and/or outdated.

    I'd rather keep the working COBOL code. Even if that means I have to deal with grumpy old geezers to maintain said code.

  16. Why replace? by Jane+Q.+Public · · Score: 2, Insightful

    Hmmm. I suppose it could be that between the times that COBOL was developed (Grace Murray Hopper, FTW), and today...

    There is more to a language than just being Turing-complete. There is syntax and geneeral usability, for example.

    I know that there are still jobs out there for COBOL programmers. And it makes me sad.

  17. Re:Adequate Languages (better than) by OFnow · · Score: 2, Interesting

    It's more than adequate because it natively handles money data in transparently correct ways. Other languages have to be bent to fit. Integer and double precision data simply do not meet the need, though these days with 64bit integers it is easier to warp integers to be usable.

    In addition it let one record right-size fields on disk and tape (in a day when disks were small and very very expensive).

    I'm glad I no longer write code in COBOL, but for many years it was the only choice possible for business.

    It was amusing in the 60s 70s 80s reading papers suggesting (32bit) integers and double precision (in C or whatever) as an alternative to COBOL data types. I guess the authors never kept their checkbook to the penny or never had as many as 5 billion pennies in that checkbook.

  18. It's the maintenance, stupid. by SanityInAnarchy · · Score: 2, Insightful

    Sure, greater productivity is one benefit, but the language is completely irrelevant for that.

    It's about how flexible the system will be when you have to change it. And you will -- that's the whole point of software, that it is soft, and changeable.

    Old Cobol apps generally are not flexible. (stolen from this comment). It's worth mentioning that a decent object-oriented system would've gone a long way towards eliminating this problem -- any idiot can stuff a date into a Date class, which then encapsulates all the date-handling code.

    Maybe some of it is very well designed. Drupal proves that you can write good, elegant code in any language, even if you are fighting the language and reinventing the wheel every step of the way. But the converse is also true -- you can write bad COBOL in any language.

    My point here is that when changing minimum wage is even a tech story at all, that program is really fucking broken*. It's very likely too broken to be patched. Really, we've learned things in the past 50 years, and not all of them are buzzwords or ways to waste five times the RAM.

    Not all of them have anything to do with programming languages, either, but if you're building a new system, and you have a choice of languages, why would you choose COBOL?

    I agree in spirit. But what people have to remember is, if it ain't broke, don't fix it. So, if it's broke, fix it!

    * I apologize for the profanity, but any program that can't change a fucking constant is a broken program. Or did they copy/paste 6.55 all over the place?

    --
    Don't thank God, thank a doctor!
    1. Re:It's the maintenance, stupid. by ralphdaugherty · · Score: 3, Informative

      * I apologize for the profanity, but any program that can't change a fucking constant is a broken program. Or did they copy/paste 6.55 all over the place?

            Your comment is idiotic. Do yu think there was only one change to the minimum wage in all the decades that California payroll system was in production?

            There was a long thread on that system, and the real reasons that that California bureaucracy didn't want to modify the payroll system at that time was covered in the thread.

            I also provided a solution in the thread that didn't require modifying the system. The California thing wasn't about technology, it was about politics.

            There, I've wasted some more of my life on this idiotic issue.

        rd

  19. books? by innocent_white_lamb · · Score: 2, Insightful

    Most COBOL books and tutorials are unavailable, out-of-print, or just plain gone.
     
    What resources still exist for someone who wants to learn COBOL?
     
    http://www.opencobol.org can easily be installed on Fedora Linux (for example) with a simple "yum install open-cobol", but what comes next?

    --
    If you're a zombie and you know it, bite your friend!
  20. Does this add up? by Allicorn · · Score: 4, Insightful

    How does this add up?

    1. Around a third of UK companies say they have even at least one COBOL program somewhere in their enterprise.

    2. Around three quarters of all UK electronic business is coded in COBOL.

    I'm aware that there are allegedly pockets of COBOL here and there with some fairly significant nuclei of usage within certain business sectors but seriously... 80% of all electronic transactions?

    Monster.co.uk search for single keyword in title, 11th Apr 2009:

    Java: 173 hits
    C++: 142 hits
    PHP: 95 hits
    Perl: 39 hits
    COBOL: 1 hit

    This doesn't seem to suggest a great demand for COBOL coders at present which - one would think - suggests little use of COBOL.

    I've heard this "the world secretly runs on COBOL" story countless times over my career, but seldom seen more than a few lines of COBOL actually deployed in businesses I've worked with. Is the whole thing just a weird industry myth?

    --
    OMG!!! Ponies!!!
    1. Re:Does this add up? by PPH · · Score: 4, Interesting

      You are confusing the amount of development done with Cobol and the number of transactions handled by Cobol systems.

      In my experience, the reason that Cobol still hangs on is that management continues to pursue the philosophy of "patch it just one more time" rather than "port it to something more easily maintained". As time goes by and continual patching gets more difficult, expensive and riskier, the amount of development goes down. But the systems are still up and running.

      The ultimate in unmaintained systems was one at an outfit I used to work for where they lost the source code. Its gone, never to be modified again. It was lost before the end of the last century and was suspected not to be Y2K compliant. The solution was to write and run a routine on the applicable database to bump all of the date fields back (20 years, I think). Then, another small routine was written to post process the output add the time back. Management is grinning from ear to ear because, unlike all the other apps that cost millions to maintain, this one costs them nothing. As long as those responsible retire before 2020, that is.

      --
      Have gnu, will travel.
    2. Re:Does this add up? by Zarf · · Score: 2, Interesting

      I think you'll only notice if you join a company that uses COBOL a lot, a financial company generally, and only then if you're employed to help with it. Even then, you'll probably only be interfacing to a "black box" where you don;t know or care what language runs it.

      Which is a very good point.

      I've been thinking with all this virtualization and such that you could eventually package up all that old COBOL code onto a virtual machine and just port the virtualization software to new platforms. Forever creating a black box of software that "just works" with out any idea of how or why.

      If that does indeed happen then there may develop pockets of entire industries over time that are as mysterious and unintelligible as tax code. Now even if you had a black box of software that was contained in a VM it wouldn't mean you could never replace it.

      After all, if you can put it under test you could combinatorically determine the function of the software by slamming every combination of input at the thing and cataloging the output... but such an approach would be very expensive and time consuming and it is much more likely future generations will want to add new function instead of rewriting old function.

      In other words, you could rewrite that COBOL but it would be impractical and why bother? Unless significant rules of the real world that the software is supposed to model changes. There may be very little call to do such a thing.

      --
      [signature]
  21. None of you guys are getting it. by slashdot_commentator · · Score: 5, Insightful

    Its not just the mythical "mission critical" aspect that keeps businesses dependent on COBOL. MANY of those programs required either financial analysts to "vet" the COBOL program, or lawyers to "vet" the COBOL program complied with laws (privacy, methods of determinations, etc.).

    Not just are you putting in the cost to refactor the program from scratch, not just are you risking a bug costing your company hundreds of millions to billions of dollars, but you also have to take in the costs of expensive NON-programmers to "bless" the new program.

    Then also realize that the new whizbang technologies like SQL and java will RUN LIKE A DOG compared to the COBOL program. That's because mainframes are optimized data I/O machines. They're not great for making intense calculations or retrieving indexed relationships, but they are a BEAST when it comes to pulling out gigabytes of user data, and then making simple calculations and updates to each. It also sounds like top notch COBOL programmers programmed to the machine for efficiency. That's not really done anymore by generic programmers.

    New shops don't have to consider COBOL. But any large company (and gov't) could potentially take a huge hit on their finances (in legal issues) if refactor project has a bug. You can roll the dice, or you can just pay another couple million/year and hope nothing ever forces you to consider replacing your legacy COBOL programs that no one knows how they work, or how to change them.

    --
    There is no America. There is no democracy. There is only IBM and AT&T and DuPont, Dow, General Electric, and Exxon
  22. The older generation isn't always wrong! by ErichTheRed · · Score: 5, Insightful

    I've had an interesting run through IT environments so far. Each one of my employers has successfully used what would be called a "legacy system" to do core business transactions. I'm not old by any means, but I definitely see no reason to get rid of systems that are performing well.

    The qualification for that statement, of course, is "performing well." The side effect to using older systems is all the bolt-ons you have to use to get newer functionality working. My current employer uses a midrange system from the early 80s to run the core of the operation, and it has tons of extra software and hardware riding on top of it to do modern things like access without terminal emulators and message queuing. The time to consider a replacement is when these systems become too unwieldy or brittle to manage. For example, if a transaction-processing system needs a daily FTP feed from some source, and it doesn't get it, will that blow up the whole system? If the answer is yes, it's time to fix the problem or replace the underlying system if it's bad enough.

    I'm very skeptical of anyone who comes in and says, barely looking at the existing system, that it needs to be ripped and replaced. A lot of it stems from the fact that IT hasn't matured all the way yet. People still come into the field knowing little more than the Java they were taught in school, and don't have the big-picture attitude you need to really understand IT. You may think I'm an old fart, but I'm really not. I've learned the basic rule of IT -- you're not there to play with computers and have fun. You're there to make sure the business you support is able to do their work, preferably without calling you in every night to fix something.

  23. Another reason... by Cynonamous+Anoward · · Score: 2, Interesting

    Why would you want to replace 2 billion lines of working COBOL code?

    Easy...COBOL, while still in use and working well now, is not a language which is still growing...it is shrinking. Nobody would choose COBOL for a new project. The only jobs left for COBOL programming are maintenance. That means that there are no "exciting" COBOL jobs, and that only coders who learned COBOL, not engineers who are good at design or interested in building/maintaining good design.

    "So it's old and all you can get is people willing to maintain, not engineer, the COBOL universe. so what?"

    Well, what's what is that:

    a) over time, code maintained by "coders" rather than "engineers" i.e. those who are simply proficient in a language, rather those with true engineering talent, will degrade. I have worked with both. I notice a trend. Those with engineering talent...a knack for understanding large systems at a high level and seeing bigger pictures, tend to improve the cleanliness, stability, and re-usability of existing code as they fix or extend it, because they look at the big picture and try to make a change such that it works well in the whole system. "Coders" tend to find the location where the logic goes wrong, and make the most obvious spot adjustment to make the problem go away. Even extensions are treated similarly. Hence, with mostly these types of engineers working on COBOL code, those systems are going to degrade over time. This effect can happen rapidly...I've seen it happen to code that was less than 5 years old. The fact that COBOL code still works is probably more a side effect that all coders of that generation had some engineering skills beaten into them. The younger generation with their "learn a language and get paid" mentality will bring that code to it's knees in a decade or less.

    (a) implies problem #2:

    b) With code which will degrade as younger, less "design" oriented maintainers are forced to take it over, maintenance becomes a primary concern. Yet as the language gets older, and the code ages and begins to break, gaining more of a reputation for being in shambles, there will be less interest in working on it. Meaning that each generation will produce fewer and fewer COBOL programmers, an effect we are already seeing.

    Businesses will be content to sit back and look at their well working, low cost maintenance systems, and think that things will always be that way as long as the don't ask anything new of the system that will cause it to need replacing. This is NOT the case. Eventually COBOL programmers will be all but gone, and those that remain will come at a high premium, and there will not be enough for everybody. At that point, the code will start to break, with nobody to maintain it.

    This is when businesses will freak out and think "we need to replace this COBOL program with something in a modern language that we can find programmers for." Except that these old systems are probably not well documented at an algorithm level. The best document is, well, the code. So what they will need is simply someone willing to read through the old code and duplicate it's behavior in a more modern program. Well that doesn't sound SO hard..except, wait, what? You mean, in order to port a program away from COBOL, you need an engineer who still _understands_ COBOL? oh, crap...

    --
    "The GPL is viral by design, like any good religion."
  24. Inhouse web apps? by ClosedSource · · Score: 3, Insightful

    In a lot of environments in-house web apps would only serve the purpose of being trendy. I suspect a company who is smart enough to keep their working code around would probably resist the temptation of unnecessary "webizing" their internal apps.

  25. COBOL not quite dead by BrokenHalo · · Score: 3, Interesting

    Quick disclaimer: IAACP (or rather I was in an earlier life, when I had to be).

    COBOL's main drawback was never any real technical issue. It is simply that it can be very tedious to do. Having said that, once you understand it, it is also a very easy language to code in. But there's certainly no reason to throw away the code just because it isn't trendy any more.

    Having said that, I do remember working on a site in the UK back in the '80s where the COBOL source to some important routines had long since disappeared, and my job was to patch the binary directly. Now that DOES take a bit of concentration. (Fun, though.)

  26. Not a heroic life by QuestorTapes · · Score: 5, Interesting

    > I declined to take the elective COBOL classes.
    > I knew enough about COBOL then to know that I
    > could not drag myself out of bed in the morning
    > to make a living with it.

    COBOL also encourages "heroic" programming. At a shop I worked at, they were very disparaging of the new systems using relational databases, and proud of the mainframe COBOL stuff, because it never went down.

    If you don't count the 4 times in one year a hardware failure caused critical business systems to go offline for 2 days to 3 weeks at a time while teams of COBOL coders used tools to manually delete and rebuild tables and indexes when various failures caused -extensive data corruption-.

    And the corrupt data caused by operator errors in nightly batch processing.

    And the recoding to fix a major financials bug that went undetected for 10 years until we compared the numbers on the external PC system.

    You see, that was "normal operations." by contrast, when a network failure occurred and the relational systems we built went offline for 45 minutes, and data recovery was "re-run the job", -that- was a disaster caused by the "sloppy PC programmers and their tinkertoy PC systems."

    COBOL's great stuff...if you like being paged at all hours to manually fix data.

  27. Re:2 jokes, 1 question by phantomcircuit · · Score: 2, Interesting

    COBOL -> ASM -> C would almost definitely be a more accurate translation of the COBOL code.

    Just a though

  28. My fate and COBOL by Orion+Blastar · · Score: 2, Funny

    My doctors discover that I have cancer and I will die, unless they put me into suspended animation and freeze me and the cancer so it does not spread until they can find a cure. But I have to sign an agreement that in order to pay for the cure and suspended animation I have to agree to work a job for the company that sponsors the cure and freezing.

    So I sign, and wake up in 9999 AD and they cure my cancer.

    I go to human resources for the company that paid for my freezing and cure and the HR director says:

    "So, Orion Blastar, I see you are a computer programmer and I also see that you know COBOL. We have a Y10K problem and need to make all of our programs work with five digit years. You'll be spending the rest of your life debugging COBOL programs to solve the Y10K problem."

    COBOL is not a dead language, it is an undead language like a Zombie or Vampire it is very hard to kill, as well as hard to work with.

    --
    Remember, Slashdot does not have a -1 disagree moderation, and no, troll, flamebait, and overrated are not substitutes.
  29. Executives listen to salespeople. by Maxo-Texas · · Score: 2, Insightful

    At my company, all the time, the salesperson says "this new system will solve all your problems-will take 12 months to implement max, and be very cheap to maintain!!!"

    And the executives bite on it every time.

    And lately, everything is going to "end of life". Excuse me? Cobol, RPG, and Java don't seem to go to end of life. I'm sure there are others.

    It's really hard when you finish a 2 year project (should have been 1 in salesman land), roll it out and debug production issues over the next year, and then 2 years later, it is "end of life".

    I guess it's good to keep me employed but it seems kinda dumb.

    "Wierd.. slasdot requires a wait... "It's been THREE minutes" --- at work it varies -- sometimes at 16 seconds it lets you posts while other times it takes the full minute.

    --
    She was like chocolate when she drank... semi-sweet at first and then increasingly bitter.
  30. I strongly disagree by HardWoodWorker · · Score: 2, Insightful

    If you think writing code for Java 5+ is "fashion," I don't think you're a very experienced programmer.

    Generics and java.util.Concurrent are mandatory for scalable systems nowadays. Java 5 added a lot of features to make code more reliable, not mindless fluff.

    If you're not using the latest features of the language where appropriate, you're doing your employer a huge disservice.

    Sorry, buddy, but you need to learn your technology. Just because people will employ you to write on outdated systems, doesn't mean you're doing your company a favor by refusing to learn the latest technologies and writing your code to run on JDK 1.4.

  31. Lose the programming almost altogether by JerryQ · · Score: 2

    I first developed cobol based systems 32 years ago, along the way I was architect and designer of, amongst a number of large systems, DEC's global currency management systems - 40 clusters worldwide operating 365/24, with self healing properties. I built a ton of systems in the interim, though no cobol for 20 years, all the time trying to lose programming altogether from the steps between definition and delivery. I have effectively achieved this (www.2di2d.com), using ubiquitous tools. So, to answer the question posed, yes, there is value in replacing, because 250bn lines of code, whilst robust, ultimately becomes inpenetrable. It must, however, be replaced with something far simpler, more robust and certainly more transparent.