cobol

10 Results

Dictionary

COBOL

(COmmon Business Oriented Language) A high-level programming language that has been the primary business application language for mainframes as well as for the variety of minicomputers that...

Dictionary

Definition: COBOL

(COmmon Business Oriented Language) A high-level programming language that has been the primary business application language for mainframes as well as for the variety of minicomputers that flourished throughout the 1970s and 1980s. It is a compiled language and one of the first high-level languages ever developed. Officially adopted in 1960, COBOL stemmed from FLOWMATIC, a language developed in the mid-1950s by Grace Murray Hopper (later Rear Admiral Hopper) for the UNIVAC I.

COBOL is very wordy. 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 for an earlier IBM 370 mainframe 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.



Sponsored White Papers, Webcasts & Resources

  • 2011, my father-in-law...and COBOL

    To say that programming was inefficient was an understatement. Such was IT in the late 1970s.

    Blog posts | January 3, 2011 7:27am PST

  • Veryant introduces isCOBOL for HP OpenVMS Systems

    With its "write once, run anywhere" capabilities, isCOBOL will simplify ongoing maintenance and modernization activities for organizations with COBOL-based OpenVMS applications.

    Blog posts | November 15, 2010 2:20pm PST

  • Request for Comments [COBOL vs. SAMP/5 thinking]

    The issue in making a province wide health care system work isn't so much what it costs as what it does. Now, as it happens, SAMP/5 systems cost a few percent of what comparable HL7 systems do,...

    Blog posts | March 20, 2010 12:15am PDT

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

    Blog posts | September 21, 2009 2:25am PDT

  • Cobol moves into Amazon's cloud

    Micro Focus is extending its Enterprise Cloud Services to support Amazon's Elastic Compute Cloud.

    News items | January 15, 2009 11:28am PST

  • Job alert: SAP, COBOL, PowerBuilder??

    As enterprise Web 2.0 makes its way into organizations, there is a misconception held among a pocket in the industry that the new technologies will replace the old says Nexaweb's Jeremy Chone.

    News items | October 1, 2008 10:51am PDT

  • From Chapter one: Data Processing and the IBM Mainframe

    COBOL reflects 1920s data processing methods - and because the IBM 360 implemented COBOL it became the foundation for an entire worldview - a culture founded entirely on a refusal to adapt to...

    Blog posts | June 20, 2008 12:15am PDT

  • From Chapter one: Data Processing and the IBM Mainframe

    The nature of data processing is to be long winded, boring, and dominated by acronyms derived from long gone technologies and business practices.

    Blog posts | June 13, 2008 12:15am PDT

  • BIt: From Chapter one: Data Processing and the IBM Mainframe

    COBOL reflects 1920s ways of thinking about data processing - and has critically influenced multiple generations of data processing thinkers since. T

    Blog posts | June 6, 2008 12:15am PDT

  • Long live COBOL?

    Search390 reports the results of a Micro Focus survey on mainframes and COBOL.  According to the survey, COBOL is still the dominant language on mainframe computers and the median age of...

    Blog posts | May 20, 2005 2:34pm PDT

Additional Results

  • 2011, my father-in-law...and COBOL

    To say that programming was inefficient was an understatement. Such was IT in the late 1970s.

    Blog posts | January 3, 2011 7:27am PST

  • Veryant introduces isCOBOL for HP OpenVMS Systems

    With its "write once, run anywhere" capabilities, isCOBOL will simplify ongoing maintenance and modernization activities for organizations with COBOL-based OpenVMS applications.

    Blog posts | November 15, 2010 2:20pm PST

  • Request for Comments [COBOL vs. SAMP/5 thinking]

    The issue in making a province wide health care system work isn't so much what it costs as what it does. Now, as it happens, SAMP/5 systems cost a few percent of what comparable HL7 systems do,...

    Blog posts | March 20, 2010 12:15am PDT

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

    Blog posts | September 21, 2009 2:25am PDT

  • Cobol moves into Amazon's cloud

    Micro Focus is extending its Enterprise Cloud Services to support Amazon's Elastic Compute Cloud.

    News items | January 15, 2009 11:28am PST

  • Job alert: SAP, COBOL, PowerBuilder??

    As enterprise Web 2.0 makes its way into organizations, there is a misconception held among a pocket in the industry that the new technologies will replace the old says Nexaweb's Jeremy Chone.

    News items | October 1, 2008 10:51am PDT

  • From Chapter one: Data Processing and the IBM Mainframe

    COBOL reflects 1920s data processing methods - and because the IBM 360 implemented COBOL it became the foundation for an entire worldview - a culture founded entirely on a refusal to adapt to...

    Blog posts | June 20, 2008 12:15am PDT

  • From Chapter one: Data Processing and the IBM Mainframe

    The nature of data processing is to be long winded, boring, and dominated by acronyms derived from long gone technologies and business practices.

    Blog posts | June 13, 2008 12:15am PDT

  • BIt: From Chapter one: Data Processing and the IBM Mainframe

    COBOL reflects 1920s ways of thinking about data processing - and has critically influenced multiple generations of data processing thinkers since. T

    Blog posts | June 6, 2008 12:15am PDT

  • Is OOP a branch to nowhere?

    No one would consider the COBOL MOVE statement to represent object oriented programming - but on close inspection it meets the criteria and that fact both undermines the entire basis for the OO...

    Blog posts | April 20, 2008 10:26am PDT

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity