3 ms·
This is right up my alley; I work for a large financial firm doing COBOL work right now. The language itself isn't that bad. There are a lot of quirks given ho
by zcdziura 11y ago
This is right up my alley; I work for a large financial firm doing COBOL work right now.
The language itself isn't that bad. There are a lot of quirks given how old it is (variable names being limited in size, file name being only 8 characters long, file-based scope, etc), but once you learn them it's really not that bad.
The best thing about the language is how it enforces a particular programming style. You have to define ALL variable and external data sources before you're able to use them. And when you get to the meat-and-potatoes of the program, a certain style is primarily used: open external resources (files, DB2 tables), check for IO errors, process the data, close the resources. Makes it easy to grok what's going on within a program (even if that program is older than you are).
The biggest challenge that I see for new COBOL programmers is learning all of the tools you'll use for your job. On the IBM zSeries Mainframe that we use, there are a TON of tools that we use to monitor our batch/CICS online programs. But that, like everything else, will take practice.
- dejv 11y agoIs there any good book for learning COBOL and maybe even tools?
- code_chimp 11y agoThe COBOL version of K&R was Stern & Stern: http://www.amazon.com/Structured-COBOL-Programming-Nancy-Stern/dp/047113886X http://www.amazon.com/Structured-COBOL-Programming-Nancy-Ste... - I'm guessing it's probably still pretty relevant as I was playing a little with OpenCobol last year and managed to look up what I had forgotten in my old dog-eared copy of that book.
- tolle 11y agoMurach's Mainframe COBOL is a decent book. GNU COBOL works for learning but database stuff is a bit of a hassle. Microfocus has a visual COBOL personal license that's free. Setting it up to work with db2 is fairly pain free.