COBOL is a very wordy language. Although mathematical expressions can also be written like other programming languages (see example below), its verbose mode is very readable for a novice. For example, multiply hourly-rate by hours-worked giving gross-pay is self-explanatory. COBOL is structured into the following divisions:
Division Name Contains IDENTIFICATION Program identification. ENVIRONMENT Types of computers used. DATA Buffers, constants, work areas. PROCEDURE The processing (program logic).
The following COBOL example converts a Fahrenheit number to Celsius. To keep the example simple, it performs the operation on the operator's terminal rather than a user terminal.
IDENTIFICATION DIVISION. PROGRAM-ID. EXAMPLE. ENVIRONMENT DIVISION. CONFIGURATION SECTION. SOURCE-COMPUTER. IBM-370. OBJECT-COMPUTER. IBM-370. DATA DIVISION. WORKING-STORAGE SECTION. 77 FAHR PICTURE 999. 77 CENT PICTURE 999. PROCEDURE DIVISION. DISPLAY 'Enter Fahrenheit ' UPON CONSOLE. ACCEPT FAHR FROM CONSOLE. COMPUTE CENT = (FAHR- 32) * 5 / 9. DISPLAY 'Celsius is ' CENT UPON CONSOLE. GOBACK.
IBM COBOLs
In 1994, IBM dropped support of OS/VS COBOL, which conforms to ANSI 68 and ANSI 74 standards and limits a program's address space to 16 bits. IBM's VS COBOL II (1984) and COBOL/370 (1991) conform to ANSI 85 standards and provide 31-bit addressing, which allows programs to run "above the line."
COBOL/370 is more compliant with AD/Cycle, has more string, math and date functions, including four-digit years, allows development through a PC window and provides enhanced runtime facilities.
![]() | Reproduced with permission from Computer Desktop Encyclopedia. Copyright (c) 1981-2009 The Computer Language Company Inc. All rights reserved. |
Additional Resources
- Do we need a 'beautiful mess' in operating systems? Yup
- To make a good soup, you've got to stir the pot...Ok, sure - it turns cloudy, short-term. Just be sure to filter it or let it settle, before serving.Whereas the classic 'design-by-committee' model so often fails, its always useful to have multiple, talented teams working on similar projects, independently. With...
- Discussion threads 2009-11-19
- Computers have speed limit as unbreakable as speed of light, say physicists
- Yeah, they have been saying this same thing for years....and everytime, they find a way to make computers even faster. I don't think that they will EVER reach a limit for computer power. Not ever.FacinatingI always knew there would be a wall somewhere, but what will be needed with that...
- Discussion threads 2009-10-16
- The troubling thoughts re: outsourcing
- Some facts and inferences should be updatedAccenture's Consulting revenue dropped 12% and Outsourcing grew by 1%http://stocks.investopedia.com/stock-analysis/2009/Accentures-Future-Remains-Bright-ACN-IBM-HPQ1005.aspxSome of the issues you highlighted around process innovation, dated technology, etc will continue to remain. However, the nimbler players will also adopt the benefits of innovations like SaaS and Cloud platform.Underlying platform is an...
- Discussion threads 2009-10-06
- The troubling thoughts re: outsourcing
- Watch this space for future problems! There’s a lot going on in the outsourcing world lately. Things like: - Perot Data Systems being acquired by Dell - ACS getting bought by Xerox Add to these deals,...
- Blog posts 2009-10-05
- Developer's Tips & Tricks 1.2.1.2 (Windows)
- Database for Code Snippets Tips and Tricks collecting to avoid the double working. Include integrated editor with syntax highlight features (Supported languages: C#, C++, COBOL, CSS, Delphi Pascal, HTML, PHP, Java Script, BASIC (Visual, Just), Perl, Phyton, - INI files, Scripts, SQL, XML and more), Tips manager (create, delete, rename,...
- Software downloads 2009-09-28
- The 10 biggest moments in IT history
- Despite its relatively short lifespan, IT has had some huge watershed moments. TechRepublic's Jack Wallen followed the tech timeline to identify the most pivotal events. It’s unlikely that everyone will ever agree on the most important dates in the history of IT. I...
- Blog posts 2009-09-21
- Windows 7 RTM - Get the facts
- Windows 7 RTM - Get the facts[b]Q:[/b] Can I stay with Windows XP for now?[b]Q:[/b] Can I stay with Windows XP for now? - 7/22/2009[b]A:[/b] Yes you can. There's no compelling reason to make a switch to W7 even though we want you to spend the money.=========================[b]Or, Consider the...
- Discussion threads 2009-07-22
- Avoid accidental complexity, and 96 other things every software architect should know
- Favor simplicity. Avoid accidental complexity. Don't worry about building the 'perfect' beast. Don't worry about future-proofing. Treat people with respect. These common-sense pearls of wisdom come from a book titled 97 Things Every Software Architect Should Know, edited by Richard Monson-Haefel, that is packed with truisms...
- Blog posts 2009-07-20
- Are we too impatient with SOA?
- Are we too impatient with SOA?impatience and laziness? Go back through a lot of articles on your site and you'll find a lot of articles hyping the transformative nature of SOA, the benefits of reuse, etc, etc. SOA has been hyped and oversold from Day 1. It was...
- Discussion threads 2009-06-29
- H-1B legislation to watch - What it's really about
- H-1B legislation to watch - What it's really aboutDICK DURBINYou link to his page right in that top paragraph... yet you still can't get his name right?RE: H-1B legislation to watch - What it's really aboutThere are thousands of highly skilled Americans that are unemployed that are willing to take...
- Discussion threads 2009-06-05
- Red Hat announces strategy to "future-proof" Java
- Red Hat announces strategy to "future-proof" Javaanother nail in M$ coffinwith OSS backing red hat and java will prosper and M$ FUD machine is running out of fuel.Well I don't know about MS......but I definitely hope this is the beginning of FOSS playing nice with Java again. It would be...
- Discussion threads 2009-06-01
- Twelve large IT failures to remember
- Twelve large IT failures to rememberWell, on the Mustang/airbag matter......considering that airbags are a badly-designed and inherently potentially dangerous political-not-engineering "solution" to a misidentified problem ("We don't need to try to find ways to prevent traffic accidents, we need to find a way to protect people when they inevitably *have*...
- Discussion threads 2009-04-29
- Algorithms everywhere: Can IBM automate business decisions?
- Algorithms everywhere: Can IBM automate business decisions?IBM made the same claim 25 years ago with MRPMRP Material Resource Planning and MRP II were going to solve all the problems with inventory in manufacturing. Not only would it track and order materials for a manufacture, it would do so for...
- Discussion threads 2009-04-15
- Code Visual to Flowchart 6.0.0420 (Windows)
- Code Visual to Flowchart is an automatic flow chart generator software. It can reverse engineering a program, create programming flowchart from code, mostly used on flowcharting a program and documenting source code. It can generate Bmp, PNG, Visio, Word, Excel and PowerPoint flowcharts document, help programmers to document, visualize and...
- Software downloads 2009-04-15
- 10 skills developers will need in the next five years
- 10 skills developers will need in the next five yearsYou forgot one thing!You need to be able to work for the same or less hourly wage than someone in India, Russia, or China. Qualifications are one thing, but CEOs always go for cheaper. Being able to work for...
- Discussion threads 2009-04-09
- Lower Total Cost of Ownership for Mission Critical Applications
- Oracle Tuxedo is the industry's #1 distributed transaction processing platform. It provides mainframe-class reliability, performance, and scalability, all on open, distributed systems for applications written in C, C++, and COBOL. Tuxedo is the premier platform for building mission-critical applications and re-hosting mainframe applications on open systems and commodity-based grid infrastructure....
- White papers 2009-04-01
- IT Manager Webcast: County Government Cuts Costs 91 Percent With Mainframe-to-.NET Migration (Level 100)
- The mainframe for the property tax system in Marin County, California, was outdated, expensive to maintain, and tough to integrate with other systems. So, the county migrated its existing COBOL code to an environment running Windows Server and the Microsoft .NET Framework. To accomplish this, it turned to Tiburon Technologies,...
- Webcasts 2009-03-27
- MySQL vs PostgresSQL
- MySQL vs PostgresSQLStability vs. AbilityUnsurprisingly, my reaction to this post is to relate it back to what we were discussing about competition and the "evolution" of software in the previous Talkback.Murph, I think you're arguing at cross purposes here. Elsewhere you argue that competition is good because otherwise we'd all...
- Discussion threads 2009-03-17
- Turtles vs. Hares
- Turtles vs. HaresDue dilligence[Utilization data for all the LPARS, with daily profiles.]I am unaware of anyone that actually goes back to an LPAR later to adjust it. Fire-and-forget seems to be the mantra when creating LPARs. Why would anyone want to do the extra work of collecting utilization data and...
- Discussion threads 2009-03-11
- Simple cost/benefit and the systems upgrade
- Simple cost/benefit and the systems upgradeAnecdotal evidenceThis is the Nth time you use this particular setup of the two 690s as a basis for comparison between AIX/Power and Solaris/Whatever. As stated in another post the problems with that system has nothing to do with AIX but with design.I can counter...
- Discussion threads 2009-03-04
Neighboring Terms
Premier Vendor Content Whitepapers, webcasts & resources from our Power Center Sponsors
- The best support in the Linux business
-
If Linux is going to power your mission-critical applications, you'd better have the best support known to business. Novell was rated the top provider of Linux technical support.

- Learn more >>
- Reduce risk. Reduce complexity. Increase reliability.
-
A simplified IT environment isn't just less complex. It's also more reliable. Standardize on a single Linux platform with SUSE Linux Enterprise from Novell, and get the world's most interoperable Linux

- Learn more >>
- The more you simplify, the more you save
-
When you transition from your existing Red Hat environment to SUSE Linux Enterprise from Novell, you can recognize dramatic cost savings, perhaps as much 50%

- Learn more >>
- The best support in the Linux business
-
If Linux is going to power your mission-critical applications, you'd better have the best support known to business. Novell was rated the top provider of Linux technical support.

- Learn more >>
-
-
Smart Tech
Expert advice on innovations in healthcare and the green technologies that make it happen.
Find out more
-
Smart Business
Discussion and advice on management issues that revolve around making your world smarter and more useful.
More Smart Advice
-
Smart People
The best and worst moves in the management and strategy trenches.
Learn More





